dev@glassfish.java.net

RE: building Glassfish 3.1.2 from source using maven

From: peter belbin <pbelbin_at_gmail.com>
Date: Thu, 8 Mar 2012 20:57:00 -0600

Ok, so I moved back to jdk 6 u 30 and maven 2.2.1, and got (after a very
long time):

 

[INFO]
------------------------------------------------------------------------

[INFO] Building Deployment Object Library

[INFO] task-segment: [install]

[INFO]
------------------------------------------------------------------------

Downloading:
http://maven.glassfish.org/content/groups/glassfish/org/eclipse/persistence/
javax.persistence/2.0.4.v201112200901/javax.persistence-2.0.4.v201112200901.
pom

[WARNING] Unable to get resource
'org.eclipse.persistence:javax.persistence:pom:2.0.4.v201112200901' from
repository glassfish-repo-archive
(http://maven.glassfish.org/content/groups/glassfish): Error transferring
file: Connection timed out

Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/javax.persistence/2.0.
4.v201112200901/javax.persistence-2.0.4.v201112200901.pom

[INFO] Unable to find resource
'org.eclipse.persistence:javax.persistence:pom:2.0.4.v201112200901' in
repository central (http://repo1.maven.org/maven2)

Downloading:
http://maven.glassfish.org/content/groups/glassfish/javax/servlet/javax.serv
let-api/3.0.1/javax.servlet-api-3.0.1.jar

Downloading:
http://maven.glassfish.org/content/groups/glassfish/org/eclipse/persistence/
javax.persistence/2.0.4.v201112200901/javax.persistence-2.0.4.v201112200901.
jar

[WARNING] Unable to get resource
'org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901' from
repository glassfish-repo-archive
(http://maven.glassfish.org/content/groups/glassfish): Error transferring
file: Connection timed out

Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/javax.persistence/2.0.
4.v201112200901/javax.persistence-2.0.4.v201112200901.jar

[WARNING] Unable to get resource 'javax.servlet:javax.servlet-api:jar:3.0.1'
from repository glassfish-repo-archive
(http://maven.glassfish.org/content/groups/glassfish): Error transferring
file: Connection timed out

Downloading:
http://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.0.1/javax.se
rvlet-api-3.0.1.jar

[INFO] Unable to find resource
'org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901' in
repository central (http://repo1.maven.org/maven2)

       

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

 

Missing:

----------

1) org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command:

      mvn install:install-file -DgroupId=org.eclipse.persistence
-DartifactId=javax.persistence -Dversion=2.0.4.v201112200901 -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.eclipse.persistence
-DartifactId=javax.persistence -Dversion=2.0.4.v201112200901 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

 

  Path to dependency:

                1) org.glassfish.main.deployment:dol:hk2-jar:3.1.2

                2)
org.eclipse.persistence:javax.persistence:jar:2.0.4.v201112200901

 

----------

1 required artifact is missing.

 

for artifact:

  org.glassfish.main.deployment:dol:hk2-jar:3.1.2

 

from the specified remote repositories:

  glassfish-repo-archive
(http://maven.glassfish.org/content/groups/glassfish),

  central (http://repo1.maven.org/maven2),

  jvnet-nexus-snapshots
(https://maven.java.net/content/repositories/snapshots)

 

 

 

[INFO]
------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 102 minutes 50 seconds

[INFO] Finished at: Thu Mar 08 13:09:45 CST 2012

[INFO] Final Memory: 145M/495M

[INFO]
------------------------------------------------------------------------

root_at_sol11:/opt/gf312src/3.1.2#

 

 

 

please advise.

 

Regards,

Peter

 

 

 

From: Romain Grecourt [mailto:romain.grecourt_at_oracle.com]
Sent: Thursday, March 08, 2012 4:03 AM
To: dev_at_glassfish.java.net
Cc: peter belbin
Subject: Re: building Glassfish 3.1.2 from source using maven

 

Hi Peter,

You can't build 3.1.2 using JDK7.
You have to use mvn-2.2.1 and JDK6. (>=u4)

Thanks,
Romain