PMD coulnd't find ruleset
问题 I'm on creating a maven based java project, which contains the PMD maven plugin. I use my own rule set XML and it works like a charm, except two rule sets: the emptycode and the unnecessary : when I run the build, maven says: " can't find resource ". The role definitions look like: <role ref="rulesets/emptycode" /> and <role ref="rulesets/unnecessary" /> In every other cases, this kind of definition works. What I found out is that: there is a rule set with the name " unnecessary " under