We specify versionId in POM and correspondingly maven produces foo-version.jar. Example: foo-1.0-SNAPSHOT.jar.
Is it possible to do do the following with maven?
Set project version in pom as a place holder
<groupId>test</groupId>
<artifactId>x</artifactId>
<version>${project.version}</version>
now you can pass version from command line
mvn -Dproject.version=1.1.1 package
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With