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

Allow command line specification of versions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-3, 2.0-beta-4, 2.0-beta-5
    • 2.0-beta-8
    • None
    • None
    • Patch

    Description

      It is convenient in a batchMode environment to specify the version to release and the new version to update SNAPSHOT artifacts to. The attached patch against maven-release-manager and maven-release-plugin provides the basic functionality to allow this.

      The maven-release-plugin will now accept two new arguments:
      -DreleaseVersion=<version string for release>
      -DdevVersion=<version string for next development cycle>

      For example, to release version 1.2 of a project and move up to version 2.0-SNAPSHOT one would issue:
      $ mvn release:clean release:prepare -DreleaseVersion=1.2 -DdevVersion=2.0 --batch-mode

      This patch is against current trunk (471862). It currently doesn't support resuming, so a release:clean is necessary if a previous release attempt has been prepared.

      Attachments

        1. release-version.diff
          5 kB
          Chris Tucker

        Issue Links

          Activity

            People

              pgier Paul Gier
              cjtucker Chris Tucker
              Votes:
              18 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: