You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthias Wurm (JIRA)" <ji...@codehaus.org> on 2007/05/18 10:44:58 UTC

[jira] Commented: (MNG-2800) Default layout .pathOf(Artifact) resolution of SNAPSHOT incorrect.

    [ http://jira.codehaus.org/browse/MNG-2800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96254 ] 

Matthias Wurm commented on MNG-2800:
------------------------------------

Could you post your tentative patch for DefaultArtifact? I'm using Archiva together with the Maven Antlib, and due to this bug all dependencies with SNAPSHOT-Versions in my classpaths are screwed.

> Default layout .pathOf(Artifact) resolution of SNAPSHOT incorrect.
> ------------------------------------------------------------------
>
>                 Key: MNG-2800
>                 URL: http://jira.codehaus.org/browse/MNG-2800
>             Project: Maven 2
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Joakim Erdfelt
>            Priority: Minor
>
> When working with SNAPSHOT deps from within Archiva, the resolution of the Artifact to a file system path is incorrect.
> Example:
> * groupId: {{com.foo}}
> * artifactId: {{foo-lib}}
> * version: {{1.0-20070130.172557-1}}
> * type: {{jar}}
> Resolves to the incorrect path {{/com/foo/foo-lib/1.0-20070130.172557-1/foo-lib-1.0-20070130.172557-1.jar}}
> It should be {{/com/foo/foo-lib/1.0-SNAPSHOT/foo-lib-1.0-20070130.172557-1.jar}}
> This is the apparent fault of org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout.pathOf(Artifact) method not having a check for .isSnapshot()

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