dev@glassfish.java.net

Re: Build issues with 4.0 branch

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 08 May 2013 18:11:24 -0700

I had the same problem building trunk today. The solution below did the
trick.

-marina

On 5/8/13 2:37 PM, Joe Di Pol wrote:
>
> I too was able to reproduce this with a clean branch build with an
> empty local maven repo.
>
> After the build failed the following cleared up the problem for me
> (at least I think this is what I did):
>
> $ cd nucleus/common/glassfish-api
> $ mvn install
> $ cd back-to-workspace-root
> $ mvn install
>
>
>
>
>
> On 5/8/13 11:48 AM, Tom Mueller wrote:
>> On 5/8/13 1:33 PM, David Twelves wrote:
>>> I'm seeing the same error (reported in this email thread a few days
>>> ago) on both 4.0 and main branches.
>>>
>>>>> [ERROR] Failed to execute goal on project glassfish-api: Could not
>>>>> resolve dependencies for project
>>>>> org.glassfish.main.common:glassfish-api:glassfish-jar:4.0-SNAPSHOT: Failed
>>>>> to collect dependencies for
>>>>> [org.glassfish.main.common:scattered-archive-api:jar:4.0-SNAPSHOT
>>>>> (compile), org.glassfish.hk2:hk2:jar:2.1.92 (compile),
>>>>> org.glassfish.main.grizzly:nucleus-grizzly-all:jar:4.0-SNAPSHOT
>>>>> (compile), org.glassfish.external:management-api:jar:3.2.0-b001
>>>>> (compile), junit:junit:jar:4.10 (test?), com.sun:tools-jar:jar:1
>>>>> (system)]: Failed to read artifact descriptor for
>>>>> org.glassfish.main.common:scattered-archive-api:jar:4.0-SNAPSHOT:
>>>>> Could not find artifact org.glassfish.jersey:jersey-bom:pom:2.0 ->
>>>>> [Help 1]
>>>
>>> I've tried cleaning up my local maven repo and did a clean checkout
>>> before building, but can't get past this. Is anyone else seeing this?
>> Yes. I'm seeing it both on my dev system and in the
>> quicklook-trunk-windows hudson-sca job.
>> Tom
>>
>>>
>>> Thanks,
>>> David
>>>
>>> -----Original Message-----
>>> From: Joe Di Pol
>>> Sent: May-03-13 8:42 PM
>>> To: dev_at_glassfish.java.net
>>> Subject: Re: Build issues with 4.0 branch
>>>
>>>
>>> FYI, this worked for me:
>>>
>>> - Clean checkout and build of trunk.
>>> - Clean checkout and build of branch
>>>
>>> Both using the same local maven repository.
>>>
>>> Joe
>>>
>>>
>>> On 5/3/13 4:13 PM, Tim Quinn wrote:
>>>> I had an IM chat earlier this afternoon with someone who saw the
>>>> same problem.
>>>>
>>>> At that time just to see I updated and built the 4.0 branch on my
>>>> Mac - successfully.
>>>>
>>>> I happened to use a separate maven repository for this build vs. my
>>>> builds for the trunk.
>>>>
>>>> FWIW.
>>>>
>>>> - Tim
>>>>
>>>> On May 3, 2013, at 5:32 PM, Mahesh.Kannan_at_Oracle.Com wrote:
>>>>
>>>>> I am having hard time building 4.0 branch on my mac:
>>>>>
>>>>> Here is the svn info:
>>>>> svn info
>>>>> Path: .
>>>>> URL: https://svn.java.net/svn/glassfish~svn/branches/4.0
>>>>> Repository Root: https://svn.java.net/svn/glassfish~svn
>>>>> Repository UUID: 6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
>>>>> Revision: 61826
>>>>> Node Kind: directory
>>>>> Schedule: normal
>>>>> Last Changed Author: shaun.pei_at_oracle.com
>>>>> Last Changed Rev: 61825
>>>>> Last Changed Date: 2013-05-03 14:07:40 -0700 (Fri, 03 May 2013)
>>>>>
>>>>>
>>>>> When I run mvn clean install, this is what I am getting:
>>>>>
>>>>> [ERROR] Failed to execute goal on project glassfish-api: Could not
>>>>> resolve dependencies for project
>>>>> org.glassfish.main.common:glassfish-api:glassfish-jar:4.0-SNAPSHOT: Failed
>>>>> to collect dependencies for
>>>>> [org.glassfish.main.common:scattered-archive-api:jar:4.0-SNAPSHOT
>>>>> (compile), org.glassfish.hk2:hk2:jar:2.1.92 (compile),
>>>>> org.glassfish.main.grizzly:nucleus-grizzly-all:jar:4.0-SNAPSHOT
>>>>> (compile), org.glassfish.external:management-api:jar:3.2.0-b001
>>>>> (compile), junit:junit:jar:4.10 (test?), com.sun:tools-jar:jar:1
>>>>> (system)]: Failed to read artifact descriptor for
>>>>> org.glassfish.main.common:scattered-archive-api:jar:4.0-SNAPSHOT:
>>>>> Could not find artifact org.glassfish.jersey:jersey-bom:pom:2.0 ->
>>>>> [Help 1]
>>>>> [ERROR]
>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven
>>>>> with the -e switch.
>>>>> [ERROR] Re-run Maven using the -X switch to enable full debug
>>>>> logging.
>>>>> [ERROR]
>>>>> [ERROR] For more information about the errors and possible
>>>>> solutions, please read the following articles:
>>>>> [ERROR] [Help 1]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>>>> [ERROR]
>>>>> [ERROR] After correcting the problems, you can resume the build
>>>>> with the command
>>>>> [ERROR] mvn <goals> -rf :glassfish-api
>>>>>
>>>>> Any ideas?
>>>>>
>>
>