findbugs is important java tool for static code analysis. There is also maven findbug plugin . The tool write XML report file. Sometimes, there is a need to exclude from the report some detected bug. findbugs can use filter files to include or exclude bugs. The maven plugin can use this files using exclude property . There is simple way to generate that file: