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

[jira] Updated: (MRELEASE-303) Resolved SNAPSHOT versions are overwritten

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

Arnaud Heritier updated MRELEASE-303:
-------------------------------------

    Component/s: prepare

> Resolved SNAPSHOT versions are overwritten
> ------------------------------------------
>
>                 Key: MRELEASE-303
>                 URL: http://jira.codehaus.org/browse/MRELEASE-303
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0-beta-8
>            Reporter: Jean-Philippe Steck
>
> When running release:prepare on a parent-child projet, I'm asked to resolved the SNAPSHOT version but some of my answers are ignored.
> Cause is : 
> In this method : CheckDependencySnapshotsPhase.resolveSnapshots
> Lig 367 : releaseDescriptor.setResolvedSnapshotDependencies( resolvedSnapshots );
> This line overwrite the map of resolved snapshot of the releaseDescriptor : 
> The newly resolved informations should be added to the existing map.
> It should be smthg like : 
> for (resolvedSnapshots ) {
>   if (! eleaseDescriptor.getResolvedSnapshotDependencies().contains(key))
>     releaseDescriptor.getResolvedSnapshotDependencies().put(resolvedSnapshots.key, resolvedSnapshots .value)
> }

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