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

release:prepare is not updating inter-modules dependencies to the next version snapshot identifier correctly (-DdryRun=true).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-7
    • 2.1
    • prepare
    • None
    • maven 2.0.9 on windows

    Description

      Case:

      project (version 1.0.4-SNAPSHOT)

      • pom.xml with
        <modules>
        <module>module1</module>
        <module>module2</module>
        </modules>
        project/module1 (version 1.0.4-SNAPSHOT)
      • pom.xml with "project" as its parent
      • dependency on module2
        project/module2 (version 1.0.4-SNAPSHOT)
      • pom.xml with "project" as its parent

      In the "project" folder run

      • mvn -DdryRun=true release:prepare -DpreparationGoals=clean
        => release version: 1.0.4
        => next dev version: 1.0.5-SNAPSHOT

      Result:

      • "project" pom has two correct pom versions: pom.xml.tag & pom.xml.next
      • "module" pom:
      • correct pom.xml.tag, meaning:
        => correct parent/version: 1.0.4-SNAPSHOT
        => correct module2 dependency moved from 1.0.4-SNAPSHOT to 1.0.5-SNAPSHOT
      • pom.xml.next:
        => correct parent/version: 1.0.5-SNAPSHOT
        => wrong module2 dependency 1.0.4-SNAPSHOT (it should be 1.0.5-SNAPSHOT)

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              vdbdavid David Van den Brande
              Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: