I'm the developer of PMDPlugin. In the latest version of PMD, it loads certain classes using ServiceLoader and it is not working inside the plugin. It is structured as follows:
I have the source of plugin and added the external library jars. The ServiceLoader definitions (META-INF/services) are inside the jars and it fails to load. I think the issue is because the libraries are loaded with a different classloader. I tried to add the path of the jars to that classloader, but still it fails. Any help to fix this is appreciated.