On Mon, Apr 13, 2009 at 5:29 PM, Niels van Kampenhout
<[email protected]> wrote:
> Is there a way to configure the name of the tag created by the release
> plugin? Default is the artifactId of the project but I want to use
> something else.
>
> For example, my project is called "My Application", the artifactId is
> "myapplication". The release plugin will create tags like
> "myapplication-1.0" and so on. But suppose I wanted to use the Jira
> key, which is "MYAPP", i.e. the tag would be "MYAPP-1.0". How can I
> configure the release plugin to do that?
>
> I could not find this in the documentation.
In the meantime I found out I can use the "tag" configuration
parameter for this, e.g.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-7</version>
<configuration>
<tagBase>https://svn.example.org/sandbox/myapplication/tags/</tagBase>
<tag>MYAPP</tag>
</configuration>
</plugin>
But then my tag will be "MYAPP", i.e. without the version number
appended. Then I tried:
<tag>MYAPP-${version}</tag>
But then the tag will be named e.g. "MYAPP-1.0-SNAPSHOT" instead of
"MYAPP-1.0", since 1.0-SNAPSHOT is the version in the pom when I run
mvn release:prepare.
Anyone knows how to do what I want?
Thanks!
Niels
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]