Hi,

The following command can deploy and then increment verion number,
but how to increment verion number and then deploy?


> mvn build-helper:parse-version versions:update-versions 
-DdevelopmentVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}
 deploy

A few suggestions:

1) Split this single line into two commands:
   %> mvn build-helper:parse-version versions:update-versions...
   %> mvn deploy

2) Have you thought about using maven-release-plugin instead of the above command(s)?

3) If you don't want to have fixed version numbers in your pom.xml, you could also use <version>${revision}</version> and then simply execute "mvn deploy -Drevision=xx.yy.zz"; see [1].



[1] https://maven.apache.org/maven-ci-friendly.html

HTH

Thorsten

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to