rashmi
rashmi

Reputation: 29

How to integrate findbugs with maven

Please provide steps to integrate findbugs with maven

Upvotes: 2

Views: 1255

Answers (2)

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

Abhinav Sarkar
Abhinav Sarkar

Reputation: 23812

Use the Maven Findbugs plugin. See the usage page of the plugin for examples.

Upvotes: 4

Related Questions