2009/10/22 Brett Porter <br...@apache.org>: > > On 23/10/2009, at 10:45 AM, Hilco Wijbenga wrote: > >> Yes, I know about this. :-) Here's what I tried and doesn't work: >> >> pmd-ruleset: >> src/main/resources/rulesets/da.xml (full set of rules; this is what >> Eclipse generates so I expect it to be okay) >> >> my-project pom.xml (snippets only): >> <dependency> >> <artifactId>pmd-ruleset</artifactId> >> </dependency> >> <plugin> >> <artifactId>maven-pmd-plugin</artifactId> >> <configuration> >> <rulesets> >> <ruleset>/rulesets/da.xml</ruleset> >> </rulesets> >> </configuration> >> </plugin> >> >> The plugin then complains that it can't find da.xml. I've also tried >> it with the dependency directly under the plugin. >> > > It needs to be under <plugin>, in the <build> section (not the <reporting> > section, and not the <pluginManagement> section). > > Here is a working example from the Effective Implementation book: > http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/pom.xml
Weird, that's exactly what I have. I even changed "rulesets" to "pmd" to match what you have (just in case). Maven doesn't find it. I'll have to try it at home with a smaller project. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org