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

update-versions removes the CI-friendly ${revisions}

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.3, 3.0.0-M7
    • 3.1.0
    • prepare, update-versions
    • None

    Description

      Given: a project using CI-friendly versions as per https://maven.apache.org/maven-ci-friendly.html

        <version>${revision}</version>
        ...
        <properties>
          <revision>1.0.0-SNAPSHOT</revision>
        </properties>
      

      If I run mvn release:update-versions (with or without -DautoVersionSubmodules=true) I expect the release plugin to change the $revision property. Instead it blindly replaces <version>${revision}</version> with the hard-coded version set on the CLI.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              marcelstoer Marcel Stör
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: