Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Findbugs and Maven 3.x

Tags:

maven

findbugs

Has anyone managed to get findbugs 2.3.1, 2.3.2-SNAPSHOT or 2.4-SNAPSHOT to work with a Maven 3.x project?

I always end up with:

[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.4-SNAPSHOT:findbugs (default-cli) on project cular-db: An error has occurred in FindBugs Report report generation. Could not find matching constructor for: org.codehaus.mojo.findbugs.FindbugsReportGenerator(org.codehaus.doxia.module.xhtml.XhtmlSink, java.util.PropertyResourceBundle, java.io.File, org.apache.maven.doxia.tools.DefaultSiteTool)

I tried all the latest possible versions. It does not matter if I use findbugs:fingbugs or only the site goal. It is specified with

    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>findbugs-maven-plugin</artifactId>
      <version>${findbugs.version}</version>
      <configuration>
        <threshold>High</threshold>
        <effort>Default</effort>
      </configuration>
    </plugin>
like image 475
Joa Ebert Avatar asked Jan 10 '11 17:01

Joa Ebert


1 Answers

On 2011/03/20, Findbugs 2.3.2 was been released, with Maven 3 support.

Announcement

Release Notes

This means that you should be able to use the latest non-snapshot version of the plugin (version 2.3.2 or later) with Maven 3.

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>findbugs-maven-plugin</artifactId>
  <version>2.3.2</version>
</plugin> 
like image 70
Matthew Jaskula Avatar answered Sep 30 '22 21:09

Matthew Jaskula