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

release:prepare does not change the version of parent snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • prepare
    • None
    • Patch

    Description

      In a project pom.xml, when the parent version is a snapshot : for example :

      <parent>
      <groupId>groupId</groupId>
      <artifactId>artifcatId</artifactId>
      <version>0.1-SNAPSHOT</version>
      </parent>

      Running "mvn release:prepare" prompt for

      'groupId:artifactId set to release? (yes/no) yes: :
      What is the next development version? (0.2-SNAPSHOT) 0.2-SNAPSHOT: :

      But then it's still 0.1-SNAPSHOT in the release and in the new developpement version.
      I expected the release version to be :
      <parent>
      <groupId>groupId</groupId>
      <artifactId>artifcatId</artifactId>
      <version>0.1</version>
      </parent>
      and the new developpement version :
      <parent>
      <groupId>groupId</groupId>
      <artifactId>artifcatId</artifactId>
      <version>0.2-SNAPSHOT</version>
      </parent>

      I attached an exemple.
      Thanks for any feedback on this.

      JP

      Attachments

        1. AbstractRewritePomsPhase-resolve-parent-snapshot.patch
          2 kB
          Sean Flanigan
        2. AbstractRewritePomsPhase.java
          36 kB
          Jean-Philippe Steck
        3. release-labo.zip
          32 kB
          Jean-Philippe Steck

        Issue Links

          Activity

            People

              Unassigned Unassigned
              herbien Jean-Philippe Steck
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: