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

scmCommentPrefix is not used when tagging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.3
    • None
    • prepare
    • None
    • Linux, Maven 3.3.9, jdk 1.0.8_102, GIT

    Description

      We use a Jira Hook in out GIT installation to ensure a Jira Ticket in all commits. This is of course also activated when the release plugin comes into play.

      When using release prepare with the scmCommentPrefix parameter, the commit message is not as expected when it comes to tagging. The initial prepare commit where the release version is committed works fine with the scmCommentPrefix, but in the next phase where the actual tagging is made the value in scmCommentPrefix is ignored. This result in a failing release with a lot of manual cleaning up in poms...

      I can see that there was a problem with this earlier before using scm api 1.3 and before the maven release version 2.0. But this should be fixed now.

      Here is an example:
      mvn release:prepare release:perform '-DscmCommentPrefix=NIS-145 NIS-295 (clausfod)' -Dresume=false '-Darguments=-DskipTests'

      Attachments

        1. mrp-git-jenkins.txt
          3 kB
          Nicolas Poisson
        2. mrp-git-local.txt
          3 kB
          Nicolas Poisson
        3. mrp-test.zip
          5 kB
          Nicolas Poisson

        Activity

          People

            Unassigned Unassigned
            clausfod Claus Nielsen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: