]
Vineet Reynolds commented on FORGE-1913:
----------------------------------------
This also results in build failures when building other addons, say during test execution
when the Forge Arquillian addon attempts to resolve artifacts but fails, like so:
{noformat}
Running org.jboss.forge.addon.angularjs.tests.metawidget.InspectionResultProcessorTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.178 sec <<<
FAILURE! - in
org.jboss.forge.addon.angularjs.tests.metawidget.InspectionResultProcessorTest
org.jboss.forge.addon.angularjs.tests.metawidget.InspectionResultProcessorTest Time
elapsed: 12.169 sec <<< ERROR!
java.lang.RuntimeException: org.eclipse.aether.collection.DependencyCollectionException:
Failed to collect dependencies at
org.jboss.forge.furnace.container:cdi:jar:forge-addon:2.6.1-SNAPSHOT ->
org.jboss.forge.furnace.container:cdi-impl:jar:2.6.1-SNAPSHOT ->
org.glassfish.web:javax.el:jar:2.2.4
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.traverseAddonGraph(MavenAddonDependencyResolver.java:337)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.fromNode(MavenAddonDependencyResolver.java:305)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.fromNode(MavenAddonDependencyResolver.java:306)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.fromNode(MavenAddonDependencyResolver.java:306)
at
org.jboss.forge.furnace.manager.maven.addon.MavenAddonDependencyResolver.resolveAddonDependencyHierarchy(MavenAddonDependencyResolver.java:87)
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.arquillian.ForgeDeployableContainer.deploy(ForgeDeployableContainer.java:114)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at
org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at
org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at
org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)
at
org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at
org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at
org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at
org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)
at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:202)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:150)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
{noformat}
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.