You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien Nicoulaud (JIRA)" <ji...@codehaus.org> on 2011/07/06 21:39:42 UTC

[jira] Created: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

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

                 Key: MRELEASE-691
                 URL: https://jira.codehaus.org/browse/MRELEASE-691
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare, scm
    Affects Versions: 2.2
            Reporter: Julien Nicoulaud
            Priority: Minor
         Attachments: maven-release-plugin-tagNameFormat.log

The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
{noformat} 
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: 
{noformat} 

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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Idcmp (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274560#comment-274560 ] 

Idcmp commented on MRELEASE-691:
--------------------------------

This seems to trick the M2 Release Plugin into creating tags like "my-proj-1.2-SNAPSHOT" if you're not careful which feels like the opposite of what you'd want this feature to do. Maybe we could get a 2.2.1 with this fixed?


> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MRELEASE-691.
-----------------------------------

    Resolution: Duplicate
      Assignee: Robert Scholte

Duplicate of MRELEASE-697
                
> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Assignee: Robert Scholte
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Marc Rohlfs (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=273830#comment-273830 ] 

Marc Rohlfs edited comment on MRELEASE-691 at 7/21/11 5:29 AM:
---------------------------------------------------------------

The tag name can be set manually by adding {{-Dtag=my-proj-1.2}}, but this isn't possible if You're using the _M2 Release Plugin for Jenkins/Hudson_. The only valuable workaround I see is going back to the plugin version 2.1. I'd also consider this (at least) a *major* issue!

      was (Author: marc.rohlfs):
    The tag name can be set manually by adding {{-Dtag=my-proj-1.2}}, but this isn't possible if You're using the _M2 Release Plugin for Jenkins/Hudson_. The only valuable workaround I see is going back to the plugin version 2.1. I'd also consider this a *major* issue!
  
> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Marcel Stör (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285589#comment-285589 ] 

Marcel Stör commented on MRELEASE-691:
--------------------------------------

I believe this should be marked 'fixed' as MRELEASE-697 (the actual culprit) is fixed. Besides this issue is linked to MRELEASE-694 but I don't see how the two are dependent.
                
> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Marc Rohlfs (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=273830#comment-273830 ] 

Marc Rohlfs commented on MRELEASE-691:
--------------------------------------

The tag name can be set manually by adding {{-Dtag=my-proj-1.2}}, but this isn't possible if You're using the _M2 Release Plugin for Jenkins/Hudson_. The only valuable workaround I see is going back to the plugin version 2.1. I'd also consider this a *major* issue!

> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279510#comment-279510 ] 

Michael Osipov edited comment on MRELEASE-691 at 9/21/11 4:34 AM:
------------------------------------------------------------------

I just tried version 2.2.1 and it works as designed.

      was (Author: michael-o):
    I just tried version 2.2.1 and it seems to work as designed.
  
> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Michael Osipov (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279510#comment-279510 ] 

Michael Osipov commented on MRELEASE-691:
-----------------------------------------

I just tried version 2.2.1 and it seems to work as designed.

> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-691) tagNameFormat property interpolation does not use the release values but the project ones

Posted by "Julien Nicoulaud (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=272482#comment-272482 ] 

Julien Nicoulaud commented on MRELEASE-691:
-------------------------------------------

Just tried without specifying any tagNameFormat at all, it tries to tag a SNAPSHOT version too (in the form artifactId-version), so I guess this issue is major, a lot of people could get tricked into tagging -SNAPSHOT versions...

> tagNameFormat property interpolation does not use the release values but the project ones
> -----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-691
>                 URL: https://jira.codehaus.org/browse/MRELEASE-691
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare, scm
>    Affects Versions: 2.2
>            Reporter: Julien Nicoulaud
>            Priority: Minor
>         Attachments: maven-release-plugin-tagNameFormat.log
>
>
> The property interpolation in the [tagNameFormat option|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagNameFormat] 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):
> {noformat} 
> 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: 
> {noformat} 
> => The version should be 2.6-M2 I just entered here, not the project SNAPSHOT one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira