dev@glassfish.java.net

Re: Error with findbugs maven plug-in

From: Tim Quinn <tim.quinn_at_oracle.com>
Date: Wed, 28 Dec 2011 15:01:49 -0600

Hi, Jane.

That definitely helped!

Upon further review, I see that if I had built release-phase1 first
that also would have taken care of this.

Thanks.

- Tim

On Dec 28, 2011, at 2:58 PM, Jane Young wrote:

> 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)
>>
>>
>