First, make sure you don’t have pending changes in your main branch.
-
git pull --rebase upstream main
-
mvn clean install
-
Update the new version
-
mvn versions:set -DnewVersion=<new released version>
-
mvn versions:commit
-
-
Commit the changes with message:
Release X.X.X.Final
-
Deploy in nexus
-
mvn clean deploy -DskipTests
-
-
Create and push a Tag with the new release.
-
Update to the next release
-
mvn versions:set -DnewVersion=<new X.X.X.Final-SNAPSHOT version>
-
mvn versions:commit
-
-
Commit the changes with message:
New development iteration X.X.X.Final-SNAPSHOT
-
git push upstream main
-
Close the staging repository.
-
Release the closed repository.