This guide provides a chronological steps which goes through release tagging, staging, verification and publishing.
Check that the project builds in java 8 and java 11.
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ mvn clean package install verify
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ mvn clean package install verify
# change release in pom.xml
# change release in README.md
mvn clean package install verify -Pdeploy
mvn clean package install verify deploy -Pdeploy
git add -A
git commit -S -m 'Release <2.2.0>'
git tag -a <v.2.2.0> -m "Tagging release <2.2.0>"
git push
git push --tags
# change release to SNAPSHOT in pom.xml
git add -A
git commit -S -m 'Next release cycle'
git push
Manually creating the release in Github project page, and upload generated artifacts.