- You PGP key needs to be uploaded to one of the common PGP key servers, e.g.
https://pgp.mit.edu/ - You need to be registered with Sonatype and allowed to publish our project
- Generate a user token at
https://central.sonatype.com/account - It will show you the
<server>entry for your~/.m2/settings.xmlfile. Paste the entry there.
Ensure that JAVA_HOME is set properly:
export JAVA_HOME=/usr/lib/jvm/defaultSpecify a PGP key and publish:
mvn clean deploy -P publish-central -Dgpg.keyname="KEY_ID"