I stumbled upon this issue over the weekend. If you are using the trunk version from svn of the Checkstyle plugin, you cannot build the site for any of our own plugins. I managed to work around it by explicitly specifying maven-checkstyle-plugin version 2.1 temporarily in the pom. I got the same message as in MCHECKSTYLE-65.

Daniel Kulp wrote:
Jason,

Back in December, you changed a bunch of plugins (PMD and Checkstyle are definitely two of them) to use the ResourceManager instead of the custom Locator code they had. That seems to work fine when the plugins are part of the actual build build, but not during a reporting run. If there are config files that are part of a dependency jar (obviously configured in pluginManagement section due to reporting section not having dependencies), during a regular build, the call to rm.getResourceAsFile(....) passing a "classpath relative" string works perfectly.

However, during a "mvn site" run, that ends up throwing an exception as the resource cannot be found. For PMD, I explicitly catch the exception and then call "this.getClass().getClassLoader().getResource(....)" which DOES work. Thus, I know the plugin itself is picking up the dependencies correctly. It's just the ResourceManager that is not configured completely correctly.

Any ideas? Is the thread contextClassloader not being set properly during reporting?



--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to