How to setup remote nexus repository with fabric environment for snapshot and non-snapshot artifacts both ?
Issue
- We have deployed the application using fabric8 process and configured fabric to use local settings.xml to access the published artifacts from Nexus repository. However Fuse is not able to load the components from Nexus and throws 'Not authorized , ReasonPhrase:Unauthorized' error although credentials are configured correctly in settings xml.
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.karaf.assemblies.features:spring:xml:features:2.4.0.redhat-621084 from/to maven-public (http://<IP_ADDR>:8081/nexus/repository/maven-public): Not authorized , ReasonPhrase:Unauthorized.
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)[121:io.fabric8.fabric-maven:1.2.0.redhat-621084]
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.