dev@glassfish.java.net

Re: Error with findbugs maven plug-in

From: Jane Young <jane.young_at_oracle.com>
Date: Wed, 28 Dec 2011 12:58:19 -0800

Hi Tim,

Try building from main/findbugs first.
1. cd main/findbugs
2. mvn install
3. cd ..
4. mvn install
5. mvn findbugs:findbugs findbugs:gui

HTH,
Jane

On 12/28/11 12:53 PM, Tim Quinn wrote:
> I tried to use
>
> mvn findbugs:findbugs findbugs:gui
>
> and got the errors below. Has anyone else been able to use this lately?
>
> - Tim
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.glassfish:findbugs:jar:4.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.glassfish
> -DartifactId=findbugs -Dversion=4.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the
> file there:
> mvn deploy:deploy-file -DgroupId=org.glassfish
> -DartifactId=findbugs -Dversion=4.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.codehaus.mojo:findbugs-maven-plugin:maven-plugin:2.3.2
> 2) org.glassfish:findbugs:jar:4.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> org.codehaus.mojo:findbugs-maven-plugin:maven-plugin:2.3.2
>
> from the specified remote repositories:
> glassfish-repo-archive
> (http://maven.glassfish.org/content/groups/glassfish),
> central (http://repo1.maven.org/maven2),
> codehaus-snapshots (http://nexus.codehaus.org/snapshots/),
> codehaus.org (http://snapshots.repository.codehaus.org)
>
>