dev@glassfish.java.net

Re: [v3] help please !! can't build v3

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Wed, 13 Aug 2008 22:57:15 +0100

FYI maven 2.1 (although it looks like that will be called 3.0 and
2.0.10 will be forked to become 2.1 with backports from 3.0) will
remove the ability to specify repositories in the pom

the correct way is to define the repos in settings.XML (or better yet
use a repo manager to proxy everything)

so if you are in the habit of adding repos to your pom that is a "bad"
habit to have

mind you we all do it ;-)

Sent from my iPod

On 13 Aug 2008, at 21:39, Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM> wrote:

> I too don't have solution and I guess I can uncomment the pom.xml
> myself
> and check it in.
>
> -Kedar
>
> Bhakti Mehta wrote:
>> I dont have the solution to this but bits and pieces if someone
>> else can connect them together
>> The job which builds api is http://hudson.sfbay/view/GFv3/job/glassfish-v3-api/
>> That seems to be blue
>> The mirror-glassfish-repository job also seems ok
>> If you see the packaging for org.glassfish.api:api this is pom so I
>> do not think there will be any jar.
>> There was a commit by Kedar trying to get the build to work on Fri https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/pom.xml?view=diff&rev=21721&p1=trunk/v3/pom.xml&p2=trunk/v3/pom.xml&r1=21720&r2=21721
>> But I think Anissa tried uncommenting that and that too did not
>> help.
>> See if checking out
>> svn co https://www.dev.java.net/svn/glassfish-svn/trunk/api
>> and building that first
>> and next building v3 can help you get past the build problem
>> Regards,
>> Bhakti
>> Anissa Lam wrote:
>>>
>>> I looked into this further. The output is complaining it can't
>>> find
>>>
>>> org.glassfish.api:api:pom:2.0-SNAPSHOT
>>>
>>> [INFO] Scanning for projects...
>>> Downloading: http://maven.dyndns.org/glassfish//org/glassfish/pom/2/pom-2.pom
>>> 4/8K^M7/8K^M8/8K^M8K downloaded
>>> [INFO]
>>> ---
>>> ---
>>> ------------------------------------------------------------------
>>> [ERROR] FATAL ERROR
>>> [INFO]
>>> ---
>>> ---
>>> ------------------------------------------------------------------
>>> [INFO] Failed to resolve artifact.
>>>
>>> GroupId: org.glassfish.api
>>> ArtifactId: api
>>> Version: 2.0-SNAPSHOT
>>>
>>> Reason: Unable to download the artifact from any repository
>>>
>>> org.glassfish.api:api:pom:2.0-SNAPSHOT
>>>
>>> from the specified remote repositories:
>>> central (http://repo1.maven.org/maven2)
>>>
>>>
>>> If you look at
>>> http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/
>>> [DIR] Parent Directory <http://download.java.net/maven/glassfish/org/glassfish/api/api/
>>> >
>>> [ ] api-2.0-SNAPSHOT.pom <http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/api-2.0-SNAPSHOT.pom
>>> > 13-Aug-2008
>>> 10:08 7K [ ] api-2.0-SNAPSHOT.pom.md5 <http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/api-2.0-SNAPSHOT.pom.md5
>>> > 13-Aug-2008 10:08
>>> 1K [ ] api-2.0-SNAPSHOT.pom.sha1 <http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/api-2.0-SNAPSHOT.pom.sha1
>>> > 13-Aug-2008 10:08
>>> 1K [TXT] maven-metadata.xml <http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/maven-metadata.xml
>>> > 13-Aug-2008
>>> 10:08 1K [TXT] maven-metadata.xml.md5 <http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/maven-metadata.xml.md5
>>> > 13-Aug-2008 10:08
>>> 1K [TXT] maven-metadata.xml.sha1 <http://download.java.net/maven/glassfish/org/glassfish/api/api/2.0-SNAPSHOT/maven-metadata.xml.sha1
>>> > 13-Aug-2008 10:08
>>> 1K There is everything except the jar itself.
>>>
>>> Is this how it suppose to be ?
>>> Notice the date, it was just updated at 10:08am this morning.
>>>
>>> Anissa
>>>
>>> Anissa Lam wrote:
>>>> Hi,
>>>> I just checked out a new workspace,
>>>> dhcp-usca14-133-231:~/Awork/V3/v3.bad anilam$ svn info
>>>> Path: .
>>>> URL: https://svn.dev.java.net/svn/glassfish-svn/trunk/v3
>>>> Repository Root: https://svn.dev.java.net/svn/glassfish-svn
>>>> Repository UUID: 6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
>>>> Revision: 21842
>>>> Node Kind: directory
>>>> Schedule: normal
>>>> Last Changed Author: amyroh
>>>> Last Changed Rev: 21842
>>>> Last Changed Date: 2008-08-13 10:07:04 -0700 (Wed, 13 Aug 2008)
>>>> Properties Last Updated: 2008-08-13 10:03:57 -0700 (Wed, 13 Aug
>>>> 2008)
>>>>
>>>> rm -rf ~/.m2/repository; mvn install
>>>>
>>>> build output attached. I have tried this on my Solaris x86 and
>>>> my Mac, same problem. Please help. I need this working on the
>>>> day of SCF !!
>>>>
>>>> thanks
>>>> Anissa.
>>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>