You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2016/09/15 20:37:20 UTC

[jira] [Commented] (MRELEASE-963) User property for tagNameFormat is ignored

    [ https://issues.apache.org/jira/browse/MRELEASE-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15494460#comment-15494460 ] 

Robert Scholte commented on MRELEASE-963:
-----------------------------------------

When running {{mvn release:prepare \-DtagNameFormat=custom-\@\{project.version} -X}} I see the proper value being set. Also when setting it as a property inside the {{pom.xml}} it works as expected. This is done by Maven core and cannot be a plugin issue. 
Be aware that if the value for tagNameFormat is already set in the effective pom, you cannot overwrite it with a parameter anymore, unless you add this again:
{code:xml}
<tagNameFormat>${tagNameFormat}</tagNameFormat>
{code}

> User property for tagNameFormat is ignored
> ------------------------------------------
>
>                 Key: MRELEASE-963
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-963
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.5.3
>            Reporter: Christopher Tubbs
>
> I attempted to override the {{tagNameFormat}} in my pom.xml, using:
> {code:xml}
> <properties>
>   <tagNameFormat>custom-@{project.version}</tagNameFormat>
> </properties>
> {code}
> This did not work. The property was completely ignored. It does work if you set the property in the plugin's configuration in the {{<pluginManagement>}} section, though.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)