When we release projects, every time it is the same. Are there any arguments or properties that I can add for release: get ready to let the template free in batch mode?
Example:
What is the release version for "MyProject"? (company.jar.site:myproject) 0.0.1::
What is SCM release tag or label for "MyProject"? (company.jar.site:myproject) MyProject-0.0.1::
What is the new development version for "MyProject"? (company.jar.site:myproject) 0.0.2-SNAPSHOT::
It would be nice to do something like this:
mvn -B release: perform -DreleaseVersion: $ nextMinorVersion $ or
mvn -B release: perform -DreleaseVersion: $ nextPatchVersion $ or
mvn -B release: perform -Dtag: v $ nextPatchVersion $ or
mvn -B release: perform -Dtag: v $ nextPatchVersion $ -someCustomNaming
If something like this does not exist yet, I will create a custom Mojo for this.
As an alternative, during the above prompts, we usually set the first question by default: "v" + the current version on the second, and the next minor on the last. If we could somehow change them, this would solve the immediate problem.
Thanks in advance.
java maven-2 release
javamonkey79
source share