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

Support a pattern to generate the release tag

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-4
    • Fix Version/s: 2.2
    • Component/s: prepare
    • Labels:
      None
    • Number of attachments :
      5

      Description

      The release-plugin uses currently the pattern "<artifactId>-<version>" to create the version tag. A configuration element would be fine to support different requirements for release tags (in our case "v_<version>", since with svn the module is already part of the path).

      1. MRELEASE-159-PATCH.diff.gz
        1 kB
        Dave Copeland
      2. MRELEASE-159-PATCH-2-0.patch
        11 kB
        Michael Wenig
      3. MRELEASE-159-PATCH-update.diff.gz
        2 kB
        Dave Copeland
      4. release-manager(updated).patch
        17 kB
        Jeff Skjonsby
      5. release-manager-patch.patch
        5 kB
        Jeff Skjonsby

        Issue Links

          Activity

          Hide
          Brett Porter added a comment -

          updated patch to review

          Show
          Brett Porter added a comment - updated patch to review
          Hide
          Laksiri Dasun added a comment - - edited

          Hi Dave , could you please tell me what should i write in tagNameformat inorder to get only the releseVersion as the tag.

          eg: "1.0.0"

          Show
          Laksiri Dasun added a comment - - edited Hi Dave , could you please tell me what should i write in tagNameformat inorder to get only the releseVersion as the tag. eg: "1.0.0"
          Hide
          Dave Copeland added a comment -

          From my comment above:

          This adds the configuration option tagNameFormat that takes a Java MessageFormat string, where {0} is the artifact name and {1} is the version (as such, the default is {0}-{1}; what it is currently).

          So, if you just wanted the version, you can do

          <tagNameFormat>{1}</tagNameForamt>
          
          Show
          Dave Copeland added a comment - From my comment above: This adds the configuration option tagNameFormat that takes a Java MessageFormat string, where {0} is the artifact name and {1} is the version (as such, the default is {0}-{1}; what it is currently). So, if you just wanted the version, you can do <tagNameFormat> {1} </tagNameForamt>
          Hide
          Laksiri Dasun added a comment -

          Thanks a lot Dave. I managed to get it done. and i do a small change as well

            
          +     * Specify the format of the tag as a java MessageFormat string.  
          +     * {0} is the artifact id, {1} is the tag version.
          +     * @parameter expression="${remoteTagging}" default-value="{0}-{1}"
          +     */    
          +    private String tagNameFormat;
          

          expression="$

          {remoteTagging}

          " should be changed as expression="$

          {tagNameFormat}

          "

          Great work Dave wonder why still it didn't released.

          Show
          Laksiri Dasun added a comment - Thanks a lot Dave. I managed to get it done. and i do a small change as well + * Specify the format of the tag as a java MessageFormat string. + * {0} is the artifact id, {1} is the tag version. + * @parameter expression="${remoteTagging}" default-value="{0}-{1}" + */ + private String tagNameFormat; expression="$ {remoteTagging} " should be changed as expression="$ {tagNameFormat} " Great work Dave wonder why still it didn't released.
          Hide
          Stephen Connolly added a comment -

          r1139359

          Show
          Stephen Connolly added a comment - r1139359

            People

            • Assignee:
              Stephen Connolly
              Reporter:
              Jörg Schaible
            • Votes:
              38 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: