You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Trenton D. Adams (JIRA)" <ji...@codehaus.org> on 2011/04/15 19:35:24 UTC

[jira] Commented: (MRELEASE-677) tags with project properties

    [ http://jira.codehaus.org/browse/MRELEASE-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263709#action_263709 ] 

Trenton D. Adams commented on MRELEASE-677:
-------------------------------------------

For anyone using linux (or mac maybe), I have a workaround. :P

mvn -DdryRun=true -Dtag=$(xpath pom.xml '/project/version/text()' | sed 's/-SNAPSHOT//' ) release:prepare

> tags with project properties
> ----------------------------
>
>                 Key: MRELEASE-677
>                 URL: http://jira.codehaus.org/browse/MRELEASE-677
>             Project: Maven 2.x Release Plugin
>          Issue Type: New Feature
>          Components: prepare
>            Reporter: Trenton D. Adams
>
> I would like to be able to use project properties in the <tag> element for the plugin configuration.  Unfortunately, it uses values that were in the SNAPSHOT version of the pom, not the current version.  So, when I use project.version as the tag name, it says 3.0.1-SNAPSHOT, rather than 3.0.1.
> This is what I had...
> <tag>${project.version}</tag>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira