maven-pmd-plugin
maven-pmd-plugin copied to clipboard
[MPMD-303] Configuration is ignored
Luigi Berrettini opened MPMD-303 and commented
I configured the reporting plugin this way:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<rulesets>
<ruleset>/category/java/bestpractices.xml</ruleset>
<ruleset>/category/java/errorprone.xml</ruleset>
<ruleset>/category/java/security.xml</ruleset>
<ruleset>/category/java/performance.xml</ruleset>
<ruleset>/category/java/multithreading.xml</ruleset>
<ruleset>/category/java/design.xml</ruleset>
<ruleset>/category/java/codestyle.xml</ruleset>
<ruleset>/category/java/documentation.xml</ruleset>
</rulesets>
<includeTests>true</includeTests>
<failurePriority>1</failurePriority>
<minimumPriority>1</minimumPriority>
<verbose>true</verbose>
<showPmdLog>true</showPmdLog>
<printFailingErrors>true</printFailingErrors>
<failOnViolation>false</failOnViolation>
<skip>false</skip>
<skipEmptyReport>false</skipEmptyReport>
</configuration>
</plugin>
When I run mvn site or mvn pmd:pmd no output is display on the console and the default ruleset is used since only target\pmd\rulesets\maven-pmd-plugin-default.xml is generated.
Looking at the code on GitHub I see the repo contains only the default ruleset.
Moreover the build plugin configuration does not support rulesets which would be a nice to have.
Affects: 3.13.0
Attachments:
- poc-mvn-pmd-plugin.zip (2.24 kB)