You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthew Buckett (JIRA)" <ji...@apache.org> on 2019/03/16 08:09:00 UTC

[jira] [Commented] (MRELEASE-695) tagNameFormat with @{project.version} tags the SNAPSHOT version

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

Matthew Buckett commented on MRELEASE-695:
------------------------------------------

I just used *v2.5.3* and a it correctly tagged using just the project version using a configuration of: {{<tagNameFormat>@\{project.version}</tagNameFormat>}}

> tagNameFormat with @{project.version} tags the SNAPSHOT version
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-695
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-695
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.2
>            Reporter: Fabrizio Giudici
>            Priority: Major
>         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 was sent by Atlassian JIRA
(v7.6.3#76005)