-
Cleanup
mvn release:clean
delete git tag, if needed:
git tag -d v0.1.0
-
Prepare the release:
mvn release:prepare \ -Dresume=false \ -DpushChanges=false
-
Perform the release
GPG_TTY=$(tty) && \ export GPG_TTY && \ mvn release:perform -DlocalCheckout=true
https://stackoverflow.com/a/57591830/3315474
In case of GPG error
gpg: signing failed: Screen or window too small
, try this:gpgconf --kill gpg-agent gpg -K --keyid-format SHORT
-
Push
git push origin git push origin --tags