Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0-beta-8
-
None
-
None
-
Patch
Description
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)
}
Attachments
Issue Links
- duplicates
-
MRELEASE-589 Resolved dependencies overwritten when multiple subprojects with SNAPSHOT dependencies are released
- Closed