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

tagNameFormat with @{project.version} tags the SNAPSHOT version

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: prepare
    • Labels:
      None

      Description

      The much awaited (by me) MRELEASE-159 seems not to work. I tried a release with the following pom:

                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-release-plugin</artifactId>
                      <configuration>
                          <localCheckout>true</localCheckout>
                          <preparationGoals>clean install verify</preparationGoals>
                          <goals>clean install javadoc:javadoc assembly:assembly deploy</goals>
                          <arguments>-P${release.profiles} -DaltDeploymentRepository="${altDeploymentRepository}"</arguments>
                          <tagNameFormat>@{project.version}</tagNameFormat>
                      </configuration>
                  </plugin>
      

      but I got the tag 1.0-ALPHA-2-SNAPSHOT in place of 1.0-ALPHA-2.

      1. test-artifact.zip
        6 kB
        Manfred Weiss

        Issue Links

          Activity

          Fabrizio Giudici created issue -
          Fabrizio Giudici made changes -
          Field Original Value New Value
          Link This issue relates to MRELEASE-159 [ MRELEASE-159 ]
          Robert Scholte made changes -
          Component/s prepare [ 13615 ]
          Description The much awaited (by me) MRELEASE-159 seems not to work. I tried a release with the following pom:

                      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-release-plugin</artifactId>
                          <configuration>
                              <localCheckout>true</localCheckout>
                              <preparationGoals>clean install verify</preparationGoals>
                              <goals>clean install javadoc:javadoc assembly:assembly deploy</goals>
                              <arguments>-P${release.profiles} -DaltDeploymentRepository="${altDeploymentRepository}"</arguments>
                              <tagNameFormat>@{project.version}</tagNameFormat>
                          </configuration>
                      </plugin>


          but I got the tag 1.0-ALPHA-2-SNAPSHOT in place of 1.0-ALPHA-2.

          The much awaited (by me) MRELEASE-159 seems not to work. I tried a release with the following pom:
          {code:xml}
                      <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-release-plugin</artifactId>
                          <configuration>
                              <localCheckout>true</localCheckout>
                              <preparationGoals>clean install verify</preparationGoals>
                              <goals>clean install javadoc:javadoc assembly:assembly deploy</goals>
                              <arguments>-P${release.profiles} -DaltDeploymentRepository="${altDeploymentRepository}"</arguments>
                              <tagNameFormat>@{project.version}</tagNameFormat>
                          </configuration>
                      </plugin>
          {code}

          but I got the tag {{1.0-ALPHA-2-SNAPSHOT}} in place of {{1.0-ALPHA-2}}.

          Robert Scholte made changes -
          Comment [ Ignore this comment, it was invalid. (If someone can delete this, please do!) ]
          Manfred Weiss made changes -
          Attachment test-artifact.zip [ 63562 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 12:15:05 UTC 2015 [ 1428236105845 ]
          Mark Thomas made changes -
          Workflow jira [ 12724508 ] Default workflow, editable Closed status [ 12763687 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:52:26 UTC 2015 [ 1428281546237 ]
          Mark Thomas made changes -
          Workflow jira [ 12962177 ] Default workflow, editable Closed status [ 12999761 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Fabrizio Giudici
            • Votes:
              8 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:

                Development