Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » WagonRepositoryConnector Using Wrong URL During Build
WagonRepositoryConnector Using Wrong URL During Build [message #1712417] Fri, 23 October 2015 22:21 Go to next message
Shelli Orton is currently offline Shelli OrtonFriend
Messages: 101
Registered: September 2009
Senior Member
Hi

I have a Hudson job that is failing and I'm not sure where to look for the source of the problem and hoping someone can point me in the right direction.

The job is a Maven build which pulls the project from a Mercurial repository and deploys the artifact to a Nexus repository. This is being done in our lab environment as I am currently upgrading Hudson and Nexus and doing some testing before upgrading our prod servers.

The job output shows that it is pulling from the lab Nexus server correctly:

[DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://nexus.lab.inet:8081/nexus/content/groups/public
Downloading: http://nexus.lab.inet:8081/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
Downloaded: http://nexus.lab.inet:8081/nexus/content/groups/public/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar (245 KB at 2204.3 KB/sec)
[DEBUG] Writing resolution tracking file /opt/home/hudson/jobs/TestJar/workspace/.maven/repo/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar.lastUpdated
[DEBUG] Writing resolution tracking file /opt/home/hudson/jobs/TestJar/workspace/.maven/repo/org/codehaus/plexus/plexus-utils/1.5.6/_maven.repositories

But then it shifts and starts using the prod Nexus server and fails:

DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://nexus.prod.inet:8080/nexus/content/repositories/my-snapshots as hudson
Downloading: http://nexus.prod.inet:8080/nexus/content/repositories/my-snapshots/my/package/TestJar/1.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata my.package:TestJar:1.0-SNAPSHOT/maven-metadata.xml from/to my-snapshots (http://nexus.prod.inet:8080/nexus/content/repositories/my-snapshots): Connection to http://nexus.prod.inet:8080 refused
org.sonatype.aether.transfer.MetadataTransferException: Could not transfer metadata my.package:TestJar:1.0-SNAPSHOT/maven-metadata.xml from/to my-snapshots (http://nexus.prod.inet:8080/nexus/content/repositories/my-snapshots): Connection to http://10.63.116.55:8080 refused

My server has a hudson user set up (which runs Hudson) and has a Maven settings.xml file set with the mirrors element set to the lab Nexus server. What I can't figure out is where the prod Nexus server URL is being pulled from and used during the build.

Any suggestions are most welcome!
Re: WagonRepositoryConnector Using Wrong URL During Build [message #1712418 is a reply to message #1712417] Fri, 23 October 2015 22:43 Go to previous messageGo to next message
Kaz Nishimura is currently offline Kaz NishimuraFriend
Messages: 89
Registered: December 2014
Member
It looks a Maven problem to me. Does any of your pom.xmls or settings.xml contains the URL of the prod server?

Kaz Nishimura
Re: WagonRepositoryConnector Using Wrong URL During Build [message #1712987 is a reply to message #1712418] Thu, 29 October 2015 17:34 Go to previous message
Shelli Orton is currently offline Shelli OrtonFriend
Messages: 101
Registered: September 2009
Senior Member
Sorry for the delay in responding; got side-tracked with other issues.

Yes, it was a Maven issue being pulled in from super POM with references to our prod server.

Thanks!
Previous Topic:Hudson equivalent of Jenkins Sonar Gerrit
Next Topic:Workspace Removed and Git SCM Fails
Goto Forum:
  


Current Time: Sat Apr 27 02:37:23 GMT 2024

Powered by FUDForum. Page generated in 0.03050 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top