Is it possible to customize the M2 maven-checkstyle-plugin to use a different ruleset?
Given that a custom ruleset is likely to span multiple projects, and it doesn't make sense to duplicate the custom ruleset file in each project, what is the best way to configure such a plugin? Perhaps we could customize the report plugin via ClassLoader resource, so that a common dependency JAR (containing the custom ruleset definition) could be included on the classpath by a parent POM, while the same parent POM could be used to configure the maven-checkstyle-report (pointing to the location of the custom ruleset definition inside the JAR as a classpath resource). This assumes that the report plugin has a parameter such as "configResourcePath". Perhaps we need a src/plugin/resources directory so that such a classpath-based resource scheme could still work inside a single project. The "plugin/resources" would be on the classpath during plugin execution only, and would not contribute to either compilation or test classpaths. Kind Regards, John Fallows. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]