Findbugs Maven Plugin Ignores Threshold

I use the following in the project pom.xml file. Goal completion findbugs:checkis still not performed for all errors, even if there are no high priority errors. What am I doing wrong?

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
  <execution>
    <id>failing-on-high</id>
    <phase>process-test-resources</phase>
    <goals>
      <goal>check</goal>
    </goals>
    <configuration>
      <threshold>High</threshold>
      <onlyAnalyze>com.example.-</onlyAnalyze>
    </configuration>
  </execution>
</executions>

+3
source share
1 answer

Looking at the documentation and trying it on a model code base, it looks like a findbugs:checktarget

Build failure if any FindBugs code is found in the source .

It does not depend on the threshold value .

Also check out this blog post which seems to describe a related issue.

+2
source

All Articles