Skip to content

Instantly share code, notes, and snippets.

@wadoon
Created November 24, 2016 17:41
Show Gist options
  • Save wadoon/436939b3c47ce4ab9e382ef39b38d26d to your computer and use it in GitHub Desktop.
Save wadoon/436939b3c47ce4ab9e382ef39b38d26d to your computer and use it in GitHub Desktop.
Maven Snippets
https://maven.apache.org/plugins/maven-checkstyle-plugin/
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
...
</project
mvn site # for everything
mvn checkstyle:checkstyle
http://gleclaire.github.io/findbugs-maven-plugin/usage.html
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5-SNAPSHOT</version>
</plugin>
</plugins>
</reporting>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment