Using maven 3.2.1

I have a project where I include a property in the versions tag:

        <groupId>com.test</groupId>
        <artifactId>sample-project</artifactId>
        <version>1.1.0-${revision}-SNAPSHOT</version>

        <properties>
                <revision>xyz</revision>
        </properties>


Now when I release this project I would like to keep the parameter:
${revision} un-substituted in the version tag. As an example:

mvn release:prepare -DreleaseVersion=2.0.0
-DdevelopmentVersion=2.0.1-${revision}-SNAPSHOT -Dtag=sample-project-2.0.0

should result in:

        <groupId>com.test</groupId>
        <artifactId>sample-project</artifactId>
        <version>2.0.1-${revision}-SNAPSHOT</version>

        <properties>
                <revision>xyz</revision>
        </properties>

But right now it instead ends up like this

        <groupId>com.test</groupId>
        <artifactId>sample-project</artifactId>
        <version>2.0.1--SNAPSHOT</version>
        <properties>
                <revision>xyz</revision>
        </properties>

Is there anyway to pass a variable in the version that is not substituted
when performing a release?



--
View this message in context: 
http://maven.40175.n5.nabble.com/Do-not-substitute-revision-when-performing-a-release-tp5791282.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to