[
https://jira.codehaus.org/browse/MRELEASE-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=327213#comment-327213
]
M Weiss edited comment on MRELEASE-695 at 6/24/13 3:54 AM:
-----------------------------------------------------------
Attached you find a project where you can reproduce the issue. Please use your
own SVN Repo and correct this informations in the pom file.
If you run release:prepare in interactive mode you'll see the issue:
"What is SCM release tag or label for "test-artifact"?
(test-group:test-artifact) test-artifact-V0.0.1-SNAPSHOT:"
Here you should be asked for "test-artifact-V0.0.1" and not
"test-artifact-V0.0.1-SNAPSHOT" because the tagNameFormat is set to:
<tagNameFormat>${project.artifactId}-V${project.version}</tagNameFormat>
This issue still exists in version 2.4.1.
was (Author: mweiss):
Attached you find a project where you can reproduce the issue. Please use
your own SVN Repo and correct this informations in the pom file.
If you run release:prepare in interactive mode you'll see the issue:
"What is SCM release tag or label for "test-artifact"?
(test-group:test-artifact) test-artifact-V0.0.1-SNAPSHOT:"
Here you should be asked for "test-artifact-V0.0.1" and not
"test-artifact-V0.0.1-SNAPSHOT" because the tagNameFormat is set to:
<tagNameFormat>${project.artifactId}-V${project.version}</tagNameFormat>
This issue still exists in version 2.4.1.
> 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
>
> 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