Skip to content

Instantly share code, notes, and snippets.

@zeljic
Last active December 18, 2017 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeljic/886f87443bf6de6b0a0e3623b6028144 to your computer and use it in GitHub Desktop.
Save zeljic/886f87443bf6de6b0a0e3623b6028144 to your computer and use it in GitHub Desktop.
Enable Maven Reporting / PMD and FindBugs
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.7</version>
<configuration>
<sourceEncoding>utf-8</sourceEncoding>
<language>java</language>
<verbose>true</verbose>
<targetJdk>1.8</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
</plugin>
</plugins>
</reporting>
@zeljic
Copy link
Author

zeljic commented Apr 10, 2017

How to call Maven Reporting?
$ mvn clean site
HTML pages will be created in target/site

@zeljic
Copy link
Author

zeljic commented Jun 5, 2017

maven-jxr-plugin will add source to project documentation/reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment