Skip to content

Findbugs plugin

Anton Antonenko edited this page Sep 22, 2016 · 2 revisions

Enabling

To enable findbugs for module add following code to pom.xml in section <plugins></plugins>:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
</plugin>

If you need report being generated without failing a build add:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
    <configuration>
        <failOnError>false</failOnError>
    </configuration>
</plugin>

Report

Findbugs generates a report which can be found in the ./your_module_name/target/findbugs directory.