Maven Release Plugin
  1. Maven Release Plugin
  2. MRELEASE-699

release:update-versions should support -DreleaseVersion too (not only -DdevelopmentVersion), so it also supports not suffixing the version with -SNAPSHOT

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: update-versions

      Description

      The documentation
      http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html
      states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used."
      That's not true, as releaseVersion is not supported:
      http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion

      This means, that if you do this:
      mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0
      that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT.

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12961593 ] Default workflow, editable Closed status [ 12998426 ]
        Robert Scholte made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Robert Scholte [ rfscholte ]
        Resolution Won't Fix [ 2 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:52:26 UTC 2015 [ 1428281546237 ]
        Mark Thomas made changes -
        Workflow jira [ 12724512 ] Default workflow, editable Closed status [ 12763701 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:15:05 UTC 2015 [ 1428236105845 ]
        Robert Scholte made changes -
        Labels github-pullrequest
        Robert Scholte made changes -
        Component/s update-versions [ 15464 ]
        Description The documentation
          http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html
        states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used."
        That's not true, as releaseVersion is not supported:
          http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion

        This means, that if you do this:
          mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0
        that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT.
        The documentation
          http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html
        states "The update-versions goal can use the same properties used by the prepare goal for specifying the versions to be used."
        That's not true, as releaseVersion is not supported:
          http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#releaseVersion

        This means, that if you do this:
          {{mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0}}
        that the set version is not 1.2.0, but in fact 1.2.0-SNAPSHOT.
        Geoffrey De Smet made changes -
        Field Original Value New Value
        Attachment 0001-MRELEASE-699-release-update-versions-should-support-.patch [ 56258 ]
        Geoffrey De Smet created issue -

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Geoffrey De Smet
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development