Download of component-matrix 6.0.0.20100429-M3 artifact from public nexus repo fails
jaikiran May 21, 2010 5:50 AMOur EJB3 hudson environment uses the public nexus repo settings.xml (as posted here http://community.jboss.org/message/541353#541353). Things had been working so far without issues. However, recently we have been seeing a failure when the IIOP module in the AS trunk is being built. During the build of that module, it requires org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 and tries to download it, but fails with the following error:
[INFO] ------------------------------------------------------------------------ [INFO] Building JBoss Application Server IIOP [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] [buildnumber:create {execution: set-build-properties}] [INFO] [build-helper:maven-version {execution: default}] Downloading: http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-component-matrix/6.0.0.20100429-M3/jboss-as-component-matrix-6.0.0.20100429-M3.pom Downloading: http://repo1.maven.org/maven2/org/jboss/jbossas/jboss-as-component-matrix/6.0.0.20100429-M3/jboss-as-component-matrix-6.0.0.20100429-M3.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.jboss.jbossas:jboss-as-component-matrix Reason: POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in repository: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) for project org.jboss.jbossas:jboss-as-component-matrix
I enabled the verbose logging through the use of -X param for maven and here's the detailed log (which shows that it does use the public nexus repo):
[DEBUG] Importing managed dependencies for Dependency {groupId=org.jboss.ejb3.bom, artifactId=bom-as6, version=0.1.2, type=pom} [DEBUG] Trying repository repository.jboss.org Downloading: http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-component-matrix/6.0.0.20100429-M3/jboss-as-component-matrix-6.0.0.20100429-M3.pom [DEBUG] Unable to get resource 'org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3' from repository repository.jboss.org (http://repository.jboss.org/maven2) [DEBUG] Skipping disabled repository snapshots.jboss.org [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/jboss/jbossas/jboss-as-component-matrix/6.0.0.20100429-M3/jboss-as-component-matrix-6.0.0.20100429-M3.pom [DEBUG] Unable to get resource 'org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3' from repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.jboss.jbossas:jboss-as-component-matrix Reason: POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in repository: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) for project org.jboss.jbossas:jboss-as-component-matrix [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.jboss.jbossts:jbossjts:jar': POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in repository: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) for project org.jboss.jbossas:jboss-as-component-matrix org.jboss.jbossts:jbossjts:jar:4.11.0.Final from the specified remote repositories: jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/), central (http://repo1.maven.org/maven2) Path to dependency: 1) org.jboss.jbossas:jboss-as-iiop:jar:6.0.0-SNAPSHOT at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:575) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.jboss.jbossts:jbossjts:jar': POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in repository: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) for project org.jboss.jbossas:jboss-as-component-matrix org.jboss.jbossts:jbossjts:jar:4.11.0.Final from the specified remote repositories: jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/), central (http://repo1.maven.org/maven2) Path to dependency: 1) org.jboss.jbossas:jboss-as-iiop:jar:6.0.0-SNAPSHOT at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:403) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:76) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:300) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:288) at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1415) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:405) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact 'org.jboss.jbossts:jbossjts:jar': POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in repository: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) for project org.jboss.jbossas:jboss-as-component-matrix at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:135) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:380) ... 22 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.jbossas:jboss-as-component-matrix' not found in repository: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) for project org.jboss.jbossas:jboss-as-component-matrix at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249) at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:1438) at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1030) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:253) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:106) ... 23 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.jboss.jbossas:jboss-as-component-matrix:pom:6.0.0.20100429-M3 from the specified remote repositories: snapshots.jboss.org (http://snapshots.jboss.org/maven2), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556) ... 29 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200) ... 31 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri May 21 15:10:02 IST 2010 [INFO] Final Memory: 18M/122M [INFO] ------------------------------------------------------------------------
I browsed the public nexus repo and I can find the artifact there https://repository.jboss.org/nexus/content/groups/public/org/jboss/jbossas/jboss-as-component-matrix/6.0.0.20100429-M3/. So I don't know what's causing this.
Any easy way to reproduce this locally is to:
1) Remove the org/jboss/jbossas/jboss-as-component-matrix/6.0.0.20100429-M3 from your local maven repo
2) Use the public repo settings.xml (don't use the dev one)
3) Go to AS_Trunk/iiop
4) mvn clean install
You will see the same error as above.
P.S: I also have an exact similar issue with one other artifact of EJB3, but I'll leave that out from this thread to avoid confusion.