How can I use a FindBugs configuration file from Sonar as the rule set in the Maven FindBugs plugin?
You can place your file, i.e. findbugs-sonar.xml
in the src/main/resource folder and specify the path in your maven reporting settings like this:
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.3-SNAPSHOT</version>
<configuration>
<includeFilterFile>findbugs-sonar.xml</includeFilterFile>
</configuration>
</plugin>
</plugins>
</reporting>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With