Skip to content

Releasing

Adam Dierkens edited this page May 25, 2017 · 3 revisions

Publishing a SNAPSHOT

mvn -Prelease -Pgpg clean deploy

If you get an error saying

[INFO] --- maven-gpg-plugin:1.6:sign (sign-artifacts) @ snapshot4j ---
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

run export GPG_TTY=$(tty) and re-run mvn -Prelease -Pgpg clean deploy

Publishing a Release

mvn -Prelease -Pgpg release:clean
mvn -Prelease -Pgpg release:prepare

Enter in the correct semver, and next release

mvn -Prelease -Pgpg release:perform

Then go to https://oss.sonatype.org/ and release from there

Clone this wiki locally