- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>3.0.5</version>
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>findbugs</artifactId>
- <version>4.0.9-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <configuration>
- <plugins>
- <plugin>
- <groupId>jp.skypencil.findbugs.slf4j</groupId>
- <artifactId>bug-pattern</artifactId>
- <!-- NOTE: This version SHOULD be kept in sync with the same version in the new spotbugs-maven-plugin below,
- but 1.4.1 broke compability with (the version we use of) FindBugs, so must keep this at 1.4.0. -->
- <version>1.4.0</version>
- </plugin>
- </plugins>
- <!--
- Enables analysis which takes more memory but finds more bugs.
- If you run out of memory, changes the value of the effort element
- to 'Low'.
- -->
- <effort>Max</effort>
- <!-- Reports all bugs (other values are medium and max) -->
- <threshold>Low</threshold>
- <!-- Build doesn't fail if problems are found -->
- <failOnError>false</failOnError>
- <!-- References the excluded rules -->
- <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
- <!-- Produces XML report -->
- <xmlOutput>true</xmlOutput>
- <!-- Configures the directory in which the XML report is created -->
- <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
- </configuration>
- <executions>
- <!--
- Ensures that FindBugs inspects source code when project is compiled.
- -->
- <execution>
- <id>analyze-compile</id>
- <phase>compile</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>