maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud Heritier (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-2941) Sometime SNAPSHOTs can not be downloaded in an an online build
Date Sat, 07 Nov 2009 21:45:55 GMT

    [ http://jira.codehaus.org/browse/MNG-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197582#action_197582
] 

Arnaud Heritier commented on MNG-2941:
--------------------------------------

Perhaps this problem is related to MNG-4142.
The build tries to download : http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/genesis/genesis/1.2-SNAPSHOT/genesis-1.2-SNAPSHOT.pom
It shouldn't because it have to read metadata from the remote repo to download the timestamped
version and not the -SNAPSHOT.

> Sometime SNAPSHOTs can not be downloaded in an an online build
> --------------------------------------------------------------
>
>                 Key: MNG-2941
>                 URL: http://jira.codehaus.org/browse/MNG-2941
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.5
>         Environment: All
>            Reporter: Anita Kulshreshtha
>             Fix For: 2.2.x
>
>
>      When an offline build fails because a SNPSHOT was not available locally, the SNAPSHOT
can not be downloaded during a subsequent online build. During the offline build a  file maven-metadata-apache-snpshots.xml
(with the following contents in this example) is created in .m2 repo:
> <?xml version="1.0" encoding="UTF-8"?><metadata>
>   <groupId>org.apache.geronimo.genesis</groupId>
>   <artifactId>genesis</artifactId>
>   <version>1.2-SNAPSHOT</version>
> </metadata>
>    All subsequent online builds fail to download this artifact from the repository with
error message given below. After deleting the metadata file corresponding to the repository
in which this artifact is available (maven-metadata-apache-snpshots.xml file in this example)
, the artifact can be downloaded successfully. 
> This trace can be produced by any SNAPSHOT in any project, the following steps are for
geronimo:
> 1. Delete the above SNAPSHOT from the local repo.
> 2. Build geronimo offlne, the build will fail.
> 3. Build online, the following message will be generated.
> 4. Delete the above metadata file, and build online, the SNAPSHOT will get downloaded
successfully.
> [INFO] Scanning for projects...
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/ger
> onimo/genesis/genesis/1.2-SNAPSHOT/genesis-1.2-SNAPSHOT.pom
> [WARNING] Unable to get resource 'org.apache.geronimo.genesis:genesis:pom:1.2-SN
> APSHOT' from repository apache-snapshots (http://people.apache.org/repo/m2-snaps
> hot-repository)
> Downloading: http://snapshots.repository.codehaus.org/org/apache/geronimo/genesi
> s/genesis/1.2-SNAPSHOT/genesis-1.2-SNAPSHOT.pom
> [WARNING] Unable to get resource 'org.apache.geronimo.genesis:genesis:pom:1.2-SN
> APSHOT' from repository codehaus-snapshots (http://snapshots.repository.codehaus
> .org)
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: org.apache.geronimo.genesis
> ArtifactId: genesis
> Version: 1.2-SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   org.apache.geronimo.genesis:genesis:pom:1.2-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-incubator (http://people.apache.org/repo/m2-incubating-repository/),
>   tomcat-m2-repo (http://tomcat.apache.org/dev/dist/m2-repository)
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache
> .geronimo.genesis:genesis for project: org.apache.geronimo.genesis.config:config
> :pom:null
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:373)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:286)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         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.project.ProjectBuildingException: Cannot find parent
> : org.apache.geronimo.genesis:genesis for project: org.apache.geronimo.genesis.c
> onfig:config:pom:null
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1198)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1214)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1214)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> aultMavenProjectBuilder.java:697)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(DefaultMavenProjectBuilder.java:431)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:195)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:523)
>         at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:455)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:359)
>         ... 11 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.ge
> ronimo.genesis:genesis' not found in repository: Unable to download the artifact
>  from any repository
>   org.apache.geronimo.genesis:genesis:pom:1.2-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-incubator (http://people.apache.org/repo/m2-incubating-repository/),
>   tomcat-m2-repo (http://tomcat.apache.org/dev/dist/m2-repository)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:528)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1194)
>         ... 19 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
> to download the artifact from any repository
>   org.apache.geronimo.genesis:genesis:pom:1.2-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-incubator (http://people.apache.org/repo/m2-incubating-repository/),
>   tomcat-m2-repo (http://tomcat.apache.org/dev/dist/m2-repository)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:197)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:73)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:482)
>         ... 20 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
> oad the artifact from any repository
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:308)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:185)
>         ... 22 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Sat Apr 07 23:01:19 EDT 2007
> [INFO] Final Memory: 1M/3M
> [INFO] ------------------------------------------------------------------------

-- 
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

        

Mime
View raw message