[
http://jira.codehaus.org/browse/MRELEASE-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121732
]
Joerg Schaible commented on MRELEASE-303:
-----------------------------------------
This problem is not only major, it is a blocker. I just released an artifact
where I was asked for the proper version of the SNAPSHOT parent, but the given
value was simply ignored and the release contained still the parent POM as
SNAPSHOT version, making the complete release invalid!
> 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