You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/12/18 15:22:19 UTC

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

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

Brett Porter closed MNG-2800.
-----------------------------

         Assignee: Brett Porter
       Resolution: Duplicate
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

can't find the issue but John has fixed this in recent versions of Maven.

> 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
>            Assignee: Brett Porter
>            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