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

tagNameFormat property interpolation does not use the release values but the project ones

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: prepare, scm
    • Labels:
      None

      Description

      The property interpolation in the tagNameFormat option is counterintuitive, one would expect it to use the release value for the project version, but instead the project SNAPSHOT version is used.

      For example, with <tagNameFormat>@

      {project.version}

      </tagNameFormat> (see attached log):

       
      What is the release version for "flexlib"? (com.google.code.flexlib:flexlib-parent) 2.6: 2.6-M2 
      What is SCM release tag or label for "flexlib"? (com.google.code.flexlib:flexlib-parent) 2.6-SNAPSHOT: 
      

      => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

        Attachments

        1. maven-release-plugin-tagNameFormat.log
          64 kB
          Julien Nicoulaud

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                nicoulaj Julien Nicoulaud
              • Votes:
                10 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: