maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From delbert <delber...@gmail.com>
Subject Do not substitute ${revision} when performing a release
Date Mon, 14 Apr 2014 11:28:37 GMT
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message