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
As I said in the comment you should use findbugs version 2.3.2-SNAPSHOT
with Maven 3
. I started a project with using maven-quickstart-archetype
and executed mvn findbugs:findbugs
and the reports are generated successfully without any problems.
[INFO] ****** FindBugsMojo execute *******
[INFO] Inside canGenerateReport..... false
[INFO] Inside canGenerateReport..... skip false, classFilesDirectory.exists() true
[INFO] canGenerate is true
[INFO] ****** FindBugsMojo executeReport *******
[INFO] Temp File is /home/umut/noinstall/dummy/target/findbugsTemp.xml
[INFO] Fork Value is true
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:56.550s
[INFO] Finished at: Mon Jan 10 11:05:13 PST 2011
[INFO] Final Memory: 9M/55M
[INFO] ------------------------------------------------------------------------
The following is the my pom.xml
.
4.0.0
com.dummy
dummy
1.0-SNAPSHOT
jar
dummy
http://maven.apache.org
UTF-8
codehaus.snapshots
http://snapshots.repository.codehaus.org
junit
junit
3.8.1
test
org.codehaus.mojo
findbugs-maven-plugin
2.3.2-SNAPSHOT
High
Default
BTW you are right it is not working with 2.3.1
but I did not try 2.4-SNAPSHOT
.