[ 
https://jira.codehaus.org/browse/MNG-5459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MNG-5459.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.1
         Assignee: Robert Scholte

Fixed in [c225847e|http://git-wip-us.apache.org/repos/asf/maven/commit/c225847e]
Thanks for the patch!
                
> failure to resolve pom artifact from snapshotVersion in maven-metadata.xml
> --------------------------------------------------------------------------
>
>                 Key: MNG-5459
>                 URL: https://jira.codehaus.org/browse/MNG-5459
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.0.5, 3.1.x
>            Reporter: Claudio Bley
>            Assignee: Robert Scholte
>             Fix For: 3.1.1
>
>         Attachments: mng5459.patch, mvn-snapshot-resolve-fix.diff
>
>
> We're using Artifactory on the server side, and ivy / sbt to publish 
> artifacts  upstream.
> After publishing several -SNAPSHOT versions of a project, trying to use it 
> from Maven, resulted in a warning and ultimately a build failure because it 
> cannot determine the dependencies:
> {code}[WARNING] The POM for com.foo:bar:jar:0.4.0-20130404.093655-3 is 
> missing, no dependency information available{code}
> This is the corresponding maven-metadata-snapshots.xml:
> {code:xml}
> <metadata>
>   <groupId>com.foo</groupId>
>   <artifactId>bar</artifactId>
>   <version>0.4.0-SNAPSHOT</version>
>   <versioning>
>     <snapshot>
>       <timestamp>20130404.090532</timestamp>
>       <buildNumber>2</buildNumber>
>     </snapshot>
>     <lastUpdated>20130404093657</lastUpdated>
>     <snapshotVersions>
>       <snapshotVersion>
>         <extension>pom</extension>
>         <value>0.4.0-20130404.090532-2</value>
>         <updated>20130404090532</updated>
>       </snapshotVersion>
>       <snapshotVersion>
>         <extension>jar</extension>
>         <value>0.4.0-20130404.093655-3</value>
>         <updated>20130404093655</updated>
>       </snapshotVersion>
>     </snapshotVersions>
>   </versioning>
> </metadata>
> {code}
> As you can see, the <value> for the jar artifact and the pom artifact differ:
> 0.4.0-20130404.093655-3
> 0.4.0-20130404.090532-2
> Apparently, artifactory optimizes the case when an artifact doesn't change; 
> it does not create a new file, but just links to the existing one.
> Maven, however, takes a shortcut and makes the erroneous assumption that the 
> values for pom and jar artifact always match up.
> The attached patch fixes this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to