Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-303

Resolved SNAPSHOT versions are overwritten

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-beta-8
    • None
    • prepare
    • 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

          Activity

            People

              rfscholte Robert Scholte
              herbien Jean-Philippe Steck
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: