dev@glassfish.java.net

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

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Wed, 13 Aug 2008 14:11:50 -0700

Kedar, 
I have tried uncomment the pom.xml changes,  it still didn't solve the problem.
The  workaround is   remove  ejb module from pom.xml.  Then it will work.

In line 159:
 <module>transaction</module>
        <module>web</module>
        <!--
        <module>ejb</module>
        -->

        <module>connectors</module>
        <module>jdbc</module>
       

After doing the above, my  build went through fine.
Also,  doing   'mvn -U install'  is definitely different than doing  'rm -rf  ~/.m2/repository;  mvn install'.    Doing 'mvn -U install' got me further, but still failed.  I HAVE to exclude the ejb module.

I wish there is a hudson job that is setup externally with a  completely new local repository so everyone can see the same thing.   Just doing  'mvn -U install'  isn't enough and it is giving the false info.   I checked  Terena's build (which was using a new local repo for every build) is  failing for more than a day and it is having the same error message.
[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


thanks.
Anissa.


Kedar Mhaswade 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@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net