Question

I am running findbugs and maven with this plugin and then the build fails even though if I run find bugs with the max setting of 20 through Eclipse I get 0 bugs. Now it fails with 33.

 <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
    <version>2.0.1</version>
    <configuration>
      <threshold>Ignore</threshold>
      <xmlOutput>true</xmlOutput>
    </configuration>
    <executions>
      <execution>
        <phase>verify</phase> 
        <goals>
          <goal>check</goal> 
        </goals>
      </execution>
    </executions>
  </plugin>

Two questions:

Why is there such a discrepancy between the Eclipse Findbugs plugin and the Maven Findbugs plugin?

Can I somehow make Eclipse Findbugs load the findbugscheck.xml generated from Maven Findbugs, so that my code is automatically highlighted. Fishing through the xml file is very annoying.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top