maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MRELEASE-695) tagNameFormat with @{project.version} tags the SNAPSHOT version
Date Tue, 25 Jun 2013 21:06:03 GMT

    [ https://jira.codehaus.org/browse/MRELEASE-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=327342#comment-327342
] 

Robert Scholte commented on MRELEASE-695:
-----------------------------------------

[~mweiss], you shouldn't be using the dollar-sign, but the at-sign. When using the {{$}} Maven
will use the resolved value, which is still a -SNAPSHOT at that moment.
                
> tagNameFormat with @{project.version} tags the SNAPSHOT version
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-695
>                 URL: https://jira.codehaus.org/browse/MRELEASE-695
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.2
>            Reporter: Fabrizio Giudici
>         Attachments: test-artifact.zip
>
>
> The much awaited (by me) MRELEASE-159 seems not to work. I tried a release with the following
pom:
> {code:xml}
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-release-plugin</artifactId>
>                 <configuration>
>                     <localCheckout>true</localCheckout>
>                     <preparationGoals>clean install verify</preparationGoals>
>                     <goals>clean install javadoc:javadoc assembly:assembly deploy</goals>
>                     <arguments>-P${release.profiles} -DaltDeploymentRepository="${altDeploymentRepository}"</arguments>
>                     <tagNameFormat>@{project.version}</tagNameFormat>
>                 </configuration>
>             </plugin>
> {code}
> but I got the tag {{1.0-ALPHA-2-SNAPSHOT}} in place of {{1.0-ALPHA-2}}.

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

Mime
View raw message