From: Bergquist, Brett <BBergquist_at_canoga.com>
Date: Sat, 11 Aug 2012 17:19:14 -0700
I am trying to build Glassfish 3.1.2 and am having a problem. I have Maven 2.2.1 installed:
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url<http://my.repository.com/repo/path%3c/url>>
</mirror>
-->
<mirror>
<id>maven-central</id>
<url>http://repo1.maven.org/maven2/</url<http://repo1.maven.org/maven2/%3c/url>>
<mirrorOf>*,!eclipselink.repository</mirrorOf>
</mirror>
</mirrors>
Here is the last of the output when running "mvn install"
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
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50 seconds
[INFO] Finished at: Sat Aug 11 20:13:13 EDT 2012
[INFO] Final Memory: 143M/269M
[INFO] ------------------------------------------------------------------------
MacbookPro ~/Development/glassfish/3.1.2 $
Any help will be greatly appreciated. I also tried with Glassfish 3.1.1 and ran into similar problems so I figured I would go with the latest release and try again.