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

Version incrementation in non interactive release (batch-mode / -B)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1
    • None
    • prepare
    • None
    • Windows 7, jdk1.6.0_17
    • Patch

    Description

      This feature makes it possible to configure the incrementation process in batch-mode.
      As default the release plugin increments the patch-level digit and adds -SNAPSHOT after a release has been executed. e,g
      1.3.3-SNAPSHOT --> 1.3.3 --> 1.3.4-SNAPSHOT

      With the following feature, the user will be allowed by setting a property in the release:prepare goal to change this behavior
      -DdevVersionIncrementation=2
      1.3.3-SNAPSHOT --> 1.3.3 --> 1.4.0-SNAPSHOT
      or (-DdevVersionIncrementation=1)
      1.3.3-SNAPSHOT --> 1.3.3 --> 2.0.0-SNAPSHOT
      the default value is -DdevVersionIncrementation=3 and will increment the patch-level digit as usual.

      In the attachment you'll find a patch for the fully implemented feature, I'd very thankful if someone could insert it into the next version.

      Attachments

        1. versionIncrementation.patch
          16 kB
          Christian Moser
        2. devVersionIncrementation_v2.patch
          18 kB
          Christian Moser

        Issue Links

          Activity

            People

              Unassigned Unassigned
              onmomo Christian Moser
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: