Error while deploying route/service to runtime from TAC

Talend Version 6.4.1

Summary

 
Additional Versions 6.3.1
Product Talend ESB
Component Runtime
Problem Description

Errors like Could not transfer artifact Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) seen in the TAC logs.

 

Example of errors seen in the TAC logs:

Caused by: java.io.IOException: Error resolving artifact POC:TESTRESTSERVICE_3:jar:0.2.0: [Could not find artifact POC:TESTRESTSERVICE_3:jar:0.2.0 in defaultlocal (file:/home/talenduser/.m2/repository/), 
Could not transfer artifact POC:TESTRESTSERVICE_3:jar:0.2.0 from/to tesb.release (http://********@localhost:8081/nexus/content/repositories/releases/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused), 
Could not transfer artifact POC:TESTRESTSERVICE_3:jar:0.2.0 from/to tesb.snapshot (http://********@localhost:8081/nexus/content/repositories/snapshots/): Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused), 
Could not find artifact POC:TESTRESTSERVICE_3:jar:0.2.0 in central (http://repo1.maven.org/maven2/)]
Problem root cause Nexus server credentials were left at default values in the cfg file.
Solution or Workaround

ESB Runtime/Karaf uses the configuration details in Runtime directory/etc/org.ops4j.pax.url.mvn.cfg to look up the connection details for the Nexus and other repositories. By default, the Nexus repository details point to localhost with default credentials in this configuration file. If the Nexus server is located elsewhere, and/or login/password were modified, update the configuration file org.ops4j.pax.url.mvn.cfg to avoid this error.

 

org.ops4j.pax.url.mvn.repositories= \
  http://admin:Talend123@localhost:8081/nexus/content/repositories/releases@id=tesb.release,\ 
         http://admin:Talend123@localhost:8081/nexus/content/repositories/snapshots@snapshots@id=tesb.snapshot,\ 
         http://repo1.maven.org/maven2@id=central

 

JIRA ticket number  
Version history
Revision #:
3 of 3
Last update:
‎01-03-2018 03:05 PM
Updated by:
 
Labels (2)
Contributors