Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(RESOLVED) Re: Could not find repository

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

As the previous post becomes hard to read, I created this new post with the way as suggested by Peter Johnson.

The error I am getting is "

[ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay.portal:util-java:jar:5.2.8, com.liferay.portal:util-bridges:jar:5.2.8, com.liferay.portal:portal-kernel:jar:5.2.8, com.liferay.portal:portal-impl:jar:5.2.8, com.liferay.portal:portal-service:jar:5.2.8: Failure to find com.liferay.portal:util-java:jar:5.2.8 in http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]


The uploaded liferay 5.2.8 is not in the following path:

http://localhost:8081/nexus/content/groups/public/com/liferay/portal/

I think there is a mis-configuration in my settings.xml file.
I have actually uploaded liferay 5.2.8 jar files to the following path:

http://localhost:8081/nexus/content/repositories/Liferay-ee-sp4-local/com/liferay/portal/

Please refer to attached settings.xml file and Snapshot of Sonatype about the Summary of the uploaded liferay 5.2.8.

I am not sure how to upload the files to http://localhost:8081/nexus/content/groups/public/com/liferay/portal/
or how to change the settings.xml file?

Thanks
Sam

settings.xml.jpg
[Thumbnail for settings.xml.jpg]
Snoatype.png
[Thumbnail for Snoatype.png]
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have uploaded liferay 5.2.8 artifacts ( jar files ) to the com/liferay/portal under "thirdparty" repository in Sonatype.

I also changed settings.xml in my ${home.dir}/.m2/ folder.

Here is my settings.xml file:



Executed maven command "mvn compile war:war" produced the following error:

$ mvn compile war:war
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ixsystems:ixsystems-registration:war:1.0-SNAPSHOT
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building iXSystems Portal Products and Services Registration 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.267s
[INFO] Finished at: Wed Jun 29 12:38:16 EST 2011
[INFO] Final Memory: 5M/88M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ixsystems-registration: Could not resolve dependencies for project ixsystems:ixsystems-registration:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.liferay.portal:util-java:jar:5.2.8, com.liferay.portal:util-bridges:jar:5.2.8, com.liferay.portal:portal-kernel:jar:5.2.8, com.liferay.portal:portal-impl:jar:5.2.8, com.liferay.portal:portal-service:jar:5.2.8: Failure to find com.liferay.portal:util-java:jar:5.2.8 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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


What do I have to change in settings.xml file so that maven find its server and liferay 5.2.8 libraries in "thirdparty" repository?

Thanks & best regards
Sam
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you anybody posted suggestion for helping me resolve this issue.
Especially thank Peter Johnson for your patient in helping me.

Best regards
Sam
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add this entry to your settings.xml to use you Nexus repository:



The "public" repository in Nexus is of type 'group' and is actually a proxy for the repositories configured in Nexus (you can change which repositories, but by default I think it is all of them).

Didn't you read the Nexus documentation? This setting is mentioned at:
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic