This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes (RESOLVED) Re: Could not find repository Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "(RESOLVED) Re: Could not find repository" Watch "(RESOLVED) Re: Could not find repository" New topic
Author

(RESOLVED) Re: Could not find repository

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
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 Snoatype.png]

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
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

Joined: Feb 18, 2011
Posts: 208
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

Joined: May 14, 2008
Posts: 5823
    
    7

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

JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: (RESOLVED) Re: Could not find repository