snowdrop / snowdrop-automation-client

snowdrop-automation-client
Apache License 2.0
1 stars 1 forks source link

Run maven:release in an unattended way #49

Closed jacobdotcosta closed 4 years ago

jacobdotcosta commented 4 years ago

When running mvn release:prepare or mvn release:perform, prompts are asked throughout the process, leaving the decision to fill these values to the moment of executing the script.

It would be interesting that variables are filled while preparing the execution of the statement, including opening the possibility of using environment variables or queries to the project pom.xml files with tools such ax xpath.

jacobdotcosta commented 4 years ago

The solution is the non interactive release

$ mvn --batch-mode release:prepare -Prelease -Dtag=2.2.6.Beta2 -DreleaseVersion=2.2.6.Beta2 -DdevelopmentVersion=2.2.6-SNAPSHOT