Description
This is a workaround for a bug in PMD up to and including 5.0.5 (I have an outstanding pull request to fix it for 5.0.6).
The PMD plugin passes an empty ruleset list into the RulesetFactory in PMD which in turn crashes. The workaround is to use a dummy ruleset that does nothing when no other rules are present.
Unfortunately it is not possible to just omit the ruleset element in some cases (because then the default list of rulesets is used). In my use case, I want the plugin to be present but no rules active.
The pull request to fix this problem is here: https://github.com/apache/maven-plugins/pull/16
The patch is here: https://github.com/apache/maven-plugins/pull/16.patch
Attachments
Issue Links
- duplicates
-
MPMD-176 upgrade to last 5.0.5
- Closed