Vineet Reynolds created FORGE-1913:
--------------------------------------
Summary: Furnace build forces use of settings.xml instead of settings
supplied to Maven
Key: FORGE-1913
URL:
https://issues.jboss.org/browse/FORGE-1913
Project: Forge
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Furnace (Container)
Affects Versions: 2.7.0.Final
Reporter: Vineet Reynolds
The following test failures are encountered, when I have (but dont use) a settings.xml
that refers to my local Nexus mirror:
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was
removed in 8.0
Running org.jboss.forge.furnace.manager.impl.AddonManagerRepositoryTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.073 sec - in
org.jboss.forge.furnace.manager.impl.AddonManagerRepositoryTest
Running org.jboss.forge.furnace.manager.impl.AddonManagerRealTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.035 sec <<<
FAILURE! - in org.jboss.forge.furnace.manager.impl.AddonManagerRealTest
testInstallUIAddon(org.jboss.forge.furnace.manager.impl.AddonManagerRealTest) Time
elapsed: 0.654 sec <<< ERROR!
java.lang.RuntimeException: org.eclipse.aether.collection.DependencyCollectionException:
Failed to read artifact descriptor for
org.jboss.forge.addon:ui:jar:forge-addon:2.0.0.Alpha6
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
at
org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:212)
at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:317)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.traverseAddonGraph(MavenAddonDependencyResolver.java:333)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.resolveAddonDependencyHierarchy(MavenAddonDependencyResolver.java:86)
at org.jboss.forge.furnace.manager.impl.AddonManagerImpl.info(AddonManagerImpl.java:54)
at
org.jboss.forge.furnace.manager.impl.AddonManagerImpl.install(AddonManagerImpl.java:67)
at
org.jboss.forge.furnace.manager.impl.AddonManagerImpl.install(AddonManagerImpl.java:60)
at
org.jboss.forge.furnace.manager.impl.AddonManagerRealTest.testInstallUIAddon(AddonManagerRealTest.java:91)
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer
artifact org.jboss.forge.addon:ui:pom:2.0.0.Alpha6 from/to nexus-local-repo
(
http://localhost:8081/nexus/content/groups/public/): Access denied to:
http://localhost:8081/nexus/content/groups/public/org/jboss/forge/addon/u...
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016)
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to:
http://localhost:8081/nexus/content/groups/public/org/jboss/forge/addon/u...
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:145)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
testInstallAddonAddon(org.jboss.forge.furnace.manager.impl.AddonManagerRealTest) Time
elapsed: 0.38 sec <<< ERROR!
java.lang.RuntimeException: org.eclipse.aether.collection.DependencyCollectionException:
Failed to read artifact descriptor for
org.jboss.forge.addon:addons:jar:forge-addon:2.0.0.Alpha6
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)
at
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
at
org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:212)
at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:317)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.traverseAddonGraph(MavenAddonDependencyResolver.java:333)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.resolveAddonDependencyHierarchy(MavenAddonDependencyResolver.java:86)
at org.jboss.forge.furnace.manager.impl.AddonManagerImpl.info(AddonManagerImpl.java:54)
at
org.jboss.forge.furnace.manager.impl.AddonManagerImpl.install(AddonManagerImpl.java:67)
at
org.jboss.forge.furnace.manager.impl.AddonManagerImpl.install(AddonManagerImpl.java:60)
at
org.jboss.forge.furnace.manager.impl.AddonManagerRealTest.testInstallAddonAddon(AddonManagerRealTest.java:77)
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer
artifact org.jboss.forge.addon:addons:pom:2.0.0.Alpha6 from/to nexus-local-repo
(
http://localhost:8081/nexus/content/groups/public/): Access denied to:
http://localhost:8081/nexus/content/groups/public/org/jboss/forge/addon/a...
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016)
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to:
http://localhost:8081/nexus/content/groups/public/org/jboss/forge/addon/a...
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:145)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{noformat}
The Furnace build itself is triggered via {{mvn -s ~/.m2/settings-without-nexus.xml clean
install}} where {{settings-without-nexus.xml}} as the file name implies, resolves
artifacts from M2 central and JBoss Nexus.
Replacing contents of settings.xml with that of {{settings-without-nexus.xml}} resolves
this issue.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)