There are two issues in Jira related to this, MRELEASE-150 en
MRELEASE-159. If you want to do what you want, please provide a patch.
;) Otherwise, just vote and hopefully they get high enough on the list
of those that can provide patches.

[1] http://jira.codehaus.org/browse/MRELEASE-150 &
http://jira.codehaus.org/browse/MRELEASE-159

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Wed, Apr 15, 2009 at 8:40 PM, Niels van Kampenhout
<[email protected]> wrote:
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to