Findbug Filters with your Maven Findbugs plugin
Do you want to pick the Findbugs bug categories you report?
This is done within your project.properties file. Below is a sample entry from your project.properties file:
maven.findbugs.includeFilter = /Apache/Maven1.0/support/findbugs/includeFilter.xml
This parameter takes a filename of an XML file that contains a definition of the bug(s) to include in the report.
A file could contain the following:
<FindBugsFilter>
<Match classregex="jsp_servlet.*" >
<BugCode name="Nm,DLS" />
</Match>
<Match classregex=".*" >
<BugCode name="Nm" />
</Match>
</FindBugsFilter>
The above tells Findbugs to include Nm and DLS category bugs for all jsp_servlet.* packages and Nm category bugs for the remainder of the code.
maven.findbugs.excludeFilter = /Apache/Maven1.0/support/findbugs/excludeFilter.xml
This parameter takes a filename of an XML file that contains a definition of the bug(s) to exclude in the report.
The file format would be the sames as that for the includeFilter but would state what bugs not to report.
For more information see Chapter 8. Filter Files
