Hi maven people,

We have projects we want to release using the maven-release-plugin.  Moreover, 
we want to perform our releases in Hudson, with the help of the M2release 
(hudson) plugin.  This is a dream come true:  perform a release on a single 
push of a button (actually, more of a link).

Now, to do this without fiddling with the version number, I need to be able to 
rely on conventions:  

- releaseVersion is OK (defaults to ex. 1.0.0)
- developmentVersion is OK (defaults to ex. 1.0.1-SNAPSHOT)
- tagBase is OK (I can specify it directly in the POM)

The value causing me trouble is the release tag label.  I would have liked to 
have it this way:

<project ...>
    <version>1.0.0-SNAPSHOT</version>
...
  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
                <tag>release-${pom.version}</tag>
...
</project>

But, this gives me a SCM tag with the '-SNAPSHOT' suffix.  Not good.  And I 
don't want to explicitly mention the version in the Hudson job configuration.

Is there a way I can get the tag label to use the correct release version?

Thank you for your answers.

-- 
JS.

Reply via email to