I have an internal library and I put the actual version in the property section.
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<springfox-version>2.5.0</springfox-version>
<common.version>6.0.3-SNAPSHOT</common.version>
</properties>
I want to automate the release process so in my Jenkins pipeline script, I would like to be able to run a command and update the 'common.version' to whatever the user entered as parameter.
When I run:
mvn versions:update-property -Dproperty=common.version -DnewVersion=[6.0.3] -DallowSnapshots=true
I get:
[INFO] Property ${common.version}: Leaving unchanged as 6.0.3-SNAPSHOT
What am I missing?