[ http://jira.codehaus.org/browse/MNG-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118558 ]
Ken in nashua commented on MNG-3282: ------------------------------------ This is a pain in the neck. I receive the same thin with maven 2.0.6 org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'com.gargoyle.test:gbase:jar': Error getting POM for 'com.gargoyle.test:gbase' from the repository: Error transferring file com.gargoyle.test:gbase:pom:2.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), trails.codehaus.org (http://trails.codehaus.org/repository), howardlewisship.com (http://howardlewisship.com/repository), localhost.repository (file:///C:\Tomcat-5.5.17/webapps/m2.repository) com.gargoyle.test:gbase:jar:2.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), trails.codehaus.org (http://trails.codehaus.org/repository), howardlewisship.com (http://howardlewisship.com/repository), localhost.repository (file:///C:\Tomcat-5.5.17/webapps/m2.repository) Path to dependency: 1) org.trailsframework.examples:realty:war:1.2-SNAPSHOT at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:297) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:67) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:192) at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:342) at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:289) at org.apache.maven.embedder.MavenEmbedder.readProjectWithDependencies(MavenEmbedder.java:277) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:53) Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact 'com.gargoyle.test:gbase:jar': Error getting POM for 'com.gargoyle.test:gbase' from the repository: Error transferring file com.gargoyle.test:gbase:pom:2.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), trails.codehaus.org (http://trails.codehaus.org/repository), howardlewisship.com (http://howardlewisship.com/repository), localhost.repository (file:///C:\Tomcat-5.5.17/webapps/m2.repository) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:131) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:275) ... 8 more Caused by: org.apache.maven.project.ProjectBuildingException: Error getting POM for 'com.gargoyle.test:gbase' from the repository: Error transferring file com.gargoyle.test:gbase:pom:2.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), trails.codehaus.org (http://trails.codehaus.org/repository), howardlewisship.com (http://howardlewisship.com/repository), localhost.repository (file:///C:\Tomcat-5.5.17/webapps/m2.repository) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:501) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:225) at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:102) ... 9 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Error transferring file com.gargoyle.test:gbase:pom:2.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), trails.codehaus.org (http://trails.codehaus.org/repository), howardlewisship.com (http://howardlewisship.com/repository), localhost.repository (file:///C:\Tomcat-5.5.17/webapps/m2.repository) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:140) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467) ... 11 more Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:99) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:369) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:282) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:244) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124) ... 13 more Caused by: java.net.UnknownHostException: trails.codehaus.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:85) ... 18 more ================================================ Here is my build... C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty>set M2_OPTS=-Xms128m -X mx512m -Xss32768k -Dmaven.test.skip=true [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... WAGON_VERSION: 1.0-beta-2 [INFO] ---------------------------------------------------------------------------- [INFO] Building Trails Demo [INFO] task-segment: [clean, install] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.codehaus.mojo:aspectj-maven-plugin: checking for updates from codehaus [INFO] artifact org.apache.myfaces.tobago:maven-apt-plugin: checking for updates from code haus [INFO] [clean:clean] [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target\classes [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target\test-classes [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target\site [INFO] snapshot org.trailsframework:trails-hibernate:1.2-SNAPSHOT: checking for updates fr om trails.codehaus.org [INFO] snapshot org.trailsframework:trails-hibernate:1.2-SNAPSHOT: checking for updates fr om apache.snapshots [INFO] snapshot org.trailsframework:trails-hibernate:1.2-SNAPSHOT: checking for updates fr om howardlewisship.com [INFO] snapshot org.trailsframework:trails-hibernate:1.2-SNAPSHOT: checking for updates fr om localhost.repository [INFO] snapshot org.trailsframework:modules:1.2-SNAPSHOT: checking for updates from trails .codehaus.org [INFO] snapshot org.trailsframework:modules:1.2-SNAPSHOT: checking for updates from apache .snapshots [INFO] snapshot org.trailsframework:modules:1.2-SNAPSHOT: checking for updates from howard lewisship.com [INFO] snapshot org.trailsframework:modules:1.2-SNAPSHOT: checking for updates from localh ost.repository [INFO] snapshot org.trailsframework:trails:1.2-SNAPSHOT: checking for updates from trails. codehaus.org [INFO] snapshot org.trailsframework:trails:1.2-SNAPSHOT: checking for updates from apache. snapshots [INFO] snapshot org.trailsframework:trails:1.2-SNAPSHOT: checking for updates from howardl ewisship.com [INFO] snapshot org.trailsframework:trails:1.2-SNAPSHOT: checking for updates from localho st.repository [INFO] snapshot org.trailsframework:trails-core:1.2-SNAPSHOT: checking for updates from tr ails.codehaus.org [INFO] snapshot org.trailsframework:trails-core:1.2-SNAPSHOT: checking for updates from ap ache.snapshots [INFO] snapshot org.trailsframework:trails-core:1.2-SNAPSHOT: checking for updates from ho wardlewisship.com [INFO] snapshot org.trailsframework:trails-core:1.2-SNAPSHOT: checking for updates from lo calhost.repository [INFO] snapshot ognl:ognl:2.7.2-SNAPSHOT: checking for updates from trails.codehaus.org [INFO] snapshot ognl:ognl:2.7.2-SNAPSHOT: checking for updates from apache.snapshots [INFO] snapshot ognl:ognl:2.7.2-SNAPSHOT: checking for updates from howardlewisship.com [INFO] snapshot ognl:ognl:2.7.2-SNAPSHOT: checking for updates from localhost.repository [INFO] snapshot com.javaforge.tapestry:tapestry-javaforge:1.0.0-SNAPSHOT: checking for upd ates from trails.codehaus.org [INFO] snapshot com.javaforge.tapestry:tapestry-javaforge:1.0.0-SNAPSHOT: checking for upd ates from apache.snapshots [INFO] snapshot com.javaforge.tapestry:tapestry-javaforge:1.0.0-SNAPSHOT: checking for upd ates from howardlewisship.com [INFO] snapshot com.javaforge.tapestry:tapestry-javaforge:1.0.0-SNAPSHOT: checking for upd ates from localhost.repository [INFO] snapshot org.trailsframework:trails-security:1.2-SNAPSHOT: checking for updates fro m trails.codehaus.org [INFO] snapshot org.trailsframework:trails-security:1.2-SNAPSHOT: checking for updates fro m apache.snapshots [INFO] snapshot org.trailsframework:trails-security:1.2-SNAPSHOT: checking for updates fro m howardlewisship.com [INFO] snapshot org.trailsframework:trails-security:1.2-SNAPSHOT: checking for updates fro m localhost.repository [INFO] snapshot org.trailsframework:trails-test:1.2-SNAPSHOT: checking for updates from tr ails.codehaus.org [INFO] snapshot org.trailsframework:trails-test:1.2-SNAPSHOT: checking for updates from ap ache.snapshots [INFO] snapshot org.trailsframework:trails-test:1.2-SNAPSHOT: checking for updates from ho wardlewisship.com [INFO] snapshot org.trailsframework:trails-test:1.2-SNAPSHOT: checking for updates from lo calhost.repository [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) ognl:ognl:jar:2.7.2-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=ognl -DartifactId=ognl \ -Dversion=2.7.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) org.trailsframework.examples:realty:war:1.2-SNAPSHOT 2) ognl:ognl:jar:2.7.2-SNAPSHOT ---------- 1 required artifact is missing. for artifact: org.trailsframework.examples:realty:war:1.2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), trails.codehaus.org (http://trails.codehaus.org/repository), howardlewisship.com (http://howardlewisship.com/repository), localhost.repository (file:///C:\Tomcat-5.5.17/webapps/m2.repository) NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 54 seconds [INFO] Finished at: Thu Jan 03 08:49:44 EST 2008 [INFO] Final Memory: 12M/127M [INFO] ------------------------------------------------------------------------ C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty>mvn clean install C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty>set MAVEN_OPTS=-Xms128m -Xmx512m -Xss32768k -Dmaven.test.skip=true C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty>set M2_OPTS=-Xms128m -X mx512m -Xss32768k -Dmaven.test.skip=true [INFO] Scanning for projects... Downloading: http://trails.codehaus.org/repository/oracle/jdbc/driver/oracle-jdbc/9.0.2.0/ oracle-jdbc-9.0.2.0.pom Downloading: http://people.apache.org/repo/m2-snapshot-repository/oracle/jdbc/driver/oracl e-jdbc/9.0.2.0/oracle-jdbc-9.0.2.0.pom Downloading: http://howardlewisship.com/repository/oracle/jdbc/driver/oracle-jdbc/9.0.2.0/ oracle-jdbc-9.0.2.0.pom Downloading: file:///C:\Tomcat-5.5.17/webapps/m2.repository/oracle/jdbc/driver/oracle-jdbc /9.0.2.0/oracle-jdbc-9.0.2.0.pom Downloading: http://repo1.maven.org/maven2/oracle/jdbc/driver/oracle-jdbc/9.0.2.0/oracle-j dbc-9.0.2.0.pom Downloading: http://trails.codehaus.org/repository/com/mysql/jdbc/mysql-jdbc/5.0.7/mysql-j dbc-5.0.7.pom Downloading: http://people.apache.org/repo/m2-snapshot-repository/com/mysql/jdbc/mysql-jdb c/5.0.7/mysql-jdbc-5.0.7.pom Downloading: http://howardlewisship.com/repository/com/mysql/jdbc/mysql-jdbc/5.0.7/mysql-j dbc-5.0.7.pom Downloading: file:///C:\Tomcat-5.5.17/webapps/m2.repository/com/mysql/jdbc/mysql-jdbc/5.0. 7/mysql-jdbc-5.0.7.pom Downloading: http://repo1.maven.org/maven2/com/mysql/jdbc/mysql-jdbc/5.0.7/mysql-jdbc-5.0. 7.pom Downloading: http://trails.codehaus.org/repository/com/sun/tools/1.5.0/tools-1.5.0.pom Downloading: http://people.apache.org/repo/m2-snapshot-repository/com/sun/tools/1.5.0/tool s-1.5.0.pom Downloading: http://howardlewisship.com/repository/com/sun/tools/1.5.0/tools-1.5.0.pom Downloading: file:///C:\Tomcat-5.5.17/webapps/m2.repository/com/sun/tools/1.5.0/tools-1.5. 0.pom Downloading: http://repo1.maven.org/maven2/com/sun/tools/1.5.0/tools-1.5.0.pom WAGON_VERSION: 1.0-beta-2 [INFO] ---------------------------------------------------------------------------- [INFO] Building Trails Demo [INFO] task-segment: [clean, install] [INFO] ---------------------------------------------------------------------------- [INFO] [clean:clean] [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target\classes [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target\test-classes [INFO] Deleting directory C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\real ty\target\site Downloading: http://trails.codehaus.org/repository/com/gargoyle/test/gbase/2.0.1/gbase-2.0 .1.pom Downloading: http://people.apache.org/repo/m2-snapshot-repository/com/gargoyle/test/gbase/ 2.0.1/gbase-2.0.1.pom Downloading: http://howardlewisship.com/repository/com/gargoyle/test/gbase/2.0.1/gbase-2.0 .1.pom Downloading: file:///C:\Tomcat-5.5.17/webapps/m2.repository/com/gargoyle/test/gbase/2.0.1/ gbase-2.0.1.pom Downloading: http://repo1.maven.org/maven2/com/gargoyle/test/gbase/2.0.1/gbase-2.0.1.pom [INFO] [aspectj:compile {execution: default}] [WARNING] advice defined in org.trails.validation.HibernateValidationAspect has not been a pplied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.trails.i18n.DescriptorInternationalization has not been ap plied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.trails.i18n.DescriptorInternationalization has not been ap plied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.trails.i18n.DescriptorInternationalization has not been ap plied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.trails.i18n.DescriptorInternationalization has not been ap plied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.trails.validation.ValidateUniqueAspect has not been applie d [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.trails.validation.CheckForOrphansAspect has not been appli ed [Xlint:adviceDidNotMatch] [INFO] [apt:execute {execution: default}] 2008-01-03 09:10:31,022 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty/src/main/resource s/hibernate.cfg.xml 2008-01-03 09:10:31,492 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - javax.persistence.Entity 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Lender 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Buyer 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Mgr 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Facility 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Sale 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.UploadableMedia 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Role 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.SalesAgent 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.User 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Person 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.AdminLayout 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Director 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.ListingAgent 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Listing 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Officer 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - org.trails.demo.Corporation 2008-01-03 09:10:31,883 [main] INFO org.trails.hibernate.HibernateAnnotationProcessorFact ory - Creating destFile: C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realt y/target/generated-sources/resources/hibernate.cfg.xml [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [aspectj:test-compile {execution: default}] [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Not compiling test sources [INFO] [surefire:test] [INFO] Tests are skipped. [INFO] [war:war] [INFO] Exploding webapp... [INFO] Assembling webapp realty in C:\Prototype\Mavenized\Product\trails\trunk\trails\exam ples\realty\target\realty-1.2-SNAPSHOT [INFO] Copy webapp webResources to C:\Prototype\Mavenized\Product\trails\trunk\trails\exam ples\realty\target\realty-1.2-SNAPSHOT [INFO] Generating war C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty\t arget\realty-1.2-SNAPSHOT.war [INFO] Building war: C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty\ta rget\realty-1.2-SNAPSHOT.war [INFO] [install:install] [INFO] Installing C:\Prototype\Mavenized\Product\trails\trunk\trails\examples\realty\targe t\realty-1.2-SNAPSHOT.war to C:\Tomcat-5.5.17\webapps\m2.repository\org\trailsframework\ex amples\realty\1.2-SNAPSHOT\realty-1.2-SNAPSHOT.war [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 16 seconds [INFO] Finished at: Thu Jan 03 09:11:02 EST 2008 [INFO] Final Memory: 22M/127M [INFO] ------------------------------------------------------------------------ > maven only tries the first repo that contains an artifact > --------------------------------------------------------- > > Key: MNG-3282 > URL: http://jira.codehaus.org/browse/MNG-3282 > Project: Maven 2 > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 2.0.7 > Reporter: Brian Fox > Assignee: Brian Fox > > If there are multiple repos that contain an artifact, the metadata in the > local repo for all of them will contain this fact. Maven only tries the first > one to get the artifact and doesn't try the others. It should try any other > repos known to contain the artifact if the previous ones fail (if they are > down for example). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira