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

Christopher Tubbs commented on MRELEASE-963:
--------------------------------------------

I just ran with {{-X}} and it looks like it's getting the {{<tagNameFormat>}} 
from the parent POM, and ignoring the property override.

You said above that you can't overwrite it if it's already set in the effective 
POM, but I could've sworn I've seen user properties override plugin 
configuration before. Regardless, this unintuitive behavior seems like it's not 
an issue specific to maven-release-plugin, but a more general unintuitive 
behavior in Maven core.

Thanks for assisting me in debugging this.

> 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)

Reply via email to