Hi,

I have a multi-module pom that I can succesfully release by using
release:prepare & release:perform

I just want to change the name of the tag created  : by default it use
"the name of the pom"."the version".

So I try to use param "tag" with ${pom.version}.
With that config,
        release:prepare is OK : create a tag with correct name
        but release:perform failed : it looks for a bad tag

If i remove the configuration for "tag", and enter the tag name by hand,
everything is ok.

here is the plugin declaration :

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.0-beta-7</version>
                    <configuration>
                        <tagBase>https://xxx/xxx/tags/versions/</tagBase>
                        <!-- this is the pb : -->
                        <tag>${pom.version}</tag>

                        <!-- Goals to run as part of the preparation
step, after transformation but before committing. Space delimited.
Default value is clean verify. -->
                        <preparationGoals>clean verify
install</preparationGoals>
                        <!-- Whether to automatically assign submodules
the parent version. If set to false, the user will be prompted for the
version of each submodules. Default value is false. -->
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                    </configuration>
                    <inherited>true</inherited>
                </plugin>

The failed scenario is :
    my pom is in version 0.3.1-SNAPSHOT
    mvn release:prepare
    tag 0.3.1 created in https://xxx/xxx/tags/versions/
    mvn release:perform
    error : try to checkout 0.3.2-SNAPSHOT wich does not exists.

I  think that  ${pom.version} is re-evaluated,  but the plugin should
use an info stored in release.properties.

I can live with this bug : i just have to type the name of the tag..

Thx,

-- 
Julien Graglia
[EMAIL PROTECTED]
04.92.57.12.12

Reply via email to