Reputation: 29
Please provide steps to integrate findbugs with maven
Upvotes: 2
Views: 1255
Reputation: 38
FindBugs looks for bugs in Java programs. It is based on the concept of bug patterns in order to integrate with Maven, put the following in your plugins section.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.0.1</version>
<configuration>
<xmlOutput>true</xmlOutput>
<!– Optional directory to put FindBugs xdoc xml report –>
<xmlOutputDirectory>target/site</xmlOutputDirectory>
<threshold>High</threshold>
</configuration>
</plugin>
Upvotes: 0
Reputation: 23812
Use the Maven Findbugs plugin. See the usage page of the plugin for examples.
Upvotes: 4