maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Philippe Steck (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MRELEASE-303) Resolved SNAPSHOT versions are overwritten
Date Tue, 11 Dec 2007 09:13:57 GMT
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
    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

        

Mime
View raw message