Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Labels:None
-
Environment:Maven 2 or 3
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
I use version properties for various reasons, but I want to publish a pom.xml without it being a SNAPSHOT, without having to manipulate the XML file myself (e.g. using sed), and without having to do string manipulation in a script based on the current project version.
For detail about my use case, see: http://maven.40175.n5.nabble.com/Continuous-Delivery-and-Maven-tp3245370p3406688.html
I'd like to be able to do something like this:
mvn versions:replace-snapshot -DnewSuffix=.123
And have it replace 3.1-SNAPSHOT with 3.1.123 very similar to versions:set.
The same diff can be seen here:
https://github.com/epabst/codehaus-mojo/commit/18690689080a7810f4f35a51fed15cb988585877