Hi all,
I am trying to enforce no-High priority findings on our project using
findbugs:check. However we would like to keep Low priority warnings in the
generated site. It seems I cannot set a different threshold for
findbugs:findbugs and findbugs:check, as it seems to be shared.
In the <reporting> section I have:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
<includeTests>true</includeTests>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
<xmlOutput>true</xmlOutput>
</configuration>
</plugin>
In the <build> section, if I use
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<configuration>
<effort>Max</effort>
<threshold>High</threshold>
</configuration>
</execution>
</executions>
</plugin>
It fails because of Low-priority warnings.
If I move the <configuration> outside the <executions>, Findbugs runs with a
High threshold and the site doesn't contain Low/Default priority warnings.
Am I doing something wrong?
Regards,
Didier Loiseau
--
Arηs Developments Belgium
30, Woluwedal
1932 St Stevens Woluwe