forked from ringcentral/jagger8
-
Notifications
You must be signed in to change notification settings - Fork 0
PMD plugin
Anton Antonenko edited this page Sep 22, 2016
·
1 revision
To enable PMD for module add following code to pom.xml in section <plugins></plugins>
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
If you need report being generated without failing a build add:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<failOnViolation>false</failOnViolation>
</configuration>
</plugin>
PMD generates a report which can be found in the ./your_module_name/target/pmd
directory.
Rulesets for PMD stored in /pmd-rulesets.xml