maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Stolwijk <nick.stolw...@gmail.com>
Subject Re: configure tag name in maven release plugin
Date Wed, 15 Apr 2009 21:59:21 GMT
Is it already possible to do the interpolation of certain properties
inside a plugin? So when I have a Project object I want to ask the API
to interpolate a certain string with the existing project values.

The reason I ask this is to solve MRELEASE-150 by adding interpolation
of %{...} variables with the release project instead of the project
Maven starts with.

Are there other ways or ideas about these issues?

With regards,

Nick Stolwijk
~Java Developer~

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



On Wed, Apr 15, 2009 at 11:33 PM, Nick Stolwijk <nick.stolwijk@gmail.com> wrote:
> 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
> <n.vankampenhout@onehippo.com> wrote:
>> On Mon, Apr 13, 2009 at 5:29 PM, Niels van Kampenhout
>> <n.vankampenhout@onehippo.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message