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

unexpected mvn release:prepare behavior for project with <version>2.2-SNAPshot</version>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.3
    • prepare
    • None
    • Windows XP
      C:\>java -version
      java version "1.6.0_21"
      Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
      Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

    Description

      While running mvn release:prepare on a project with
      <version>2.2-SNAPSHOT</version> the goal executes successfully, as expected.

      On a project with
      <version>2.2</version> the goal fails as expected, because it's not a snapshot.

      However, on a project with
      <version>...-SNAPshot</version> the goal doesn't fail, i.e. the project is considered a snapshot.

      In interactive mode the proposed defaults are:

      Actual results:

      release version: 2.2-SNAPshot
      SCM release tag or label: myproject-2.2-SNAPshot
      new development version: myproject-2.2-SNAPshot-SNAPSHOT

      Conclusion: the version label is not treated as that of a snapshot project

      Expected results:
      Either:
      a) if SNAPSHOT is not in upper-case the goal treats the project as a release, therefore fails.
      b) the proposed defaults becom:
      release version: 2.2
      SCM release tag or label: myproject-2.2
      new development version: myproject-2.2-SNAPSHOT

      Attachments

        1. pom.xml
          1.0 kB
          ionuion

        Activity

          People

            rfscholte Robert Scholte
            ionuion ionuion
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: