-
Notifications
You must be signed in to change notification settings - Fork 10
Deploy to Maven Central
Rick Brown edited this page Aug 20, 2015
·
2 revisions
This page is for my own benefit so I remember how to deploy to Maven Central
The release command goes a little something like this:
mvn release:clean release:prepare release:perform
Make sure you are not on the Git master branch because the build checks things out and checks them back in.
In NetBeans change profile from <default config>
to sonatype-oss-release
The POM file is mostly configured but needs to find some secrets in the settings.xml
file.
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<profiles>
<profile>
<id>sonatype-oss-release</id>
<properties>
<gpg.keyname>ENTER THE KEYNAME HERE</gpg.keyname>
<gpg.passphrase>ENTER THE PASSPHRASE HERE</gpg.passphrase>
<gpg.defaultKeyring>false</gpg.defaultKeyring>
<gpg.executable>/usr/local/bin/gpg</gpg.executable>
<gpg.useagent>true</gpg.useagent>
<gpg.lockMode>never</gpg.lockMode>
<gpg.homedir>/home/rick/.gnupg</gpg.homedir>
<gpg.publicKeyring>/home/rick/.gnupg/pubring.gpg</gpg.publicKeyring>
<gpg.secretKeyring>/home/rick/.gnupg/secring.gpg</gpg.secretKeyring>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>ossrh</id>
<username>ENTER SONATYPE USERNAME</username>
<password>ENTER SONATYPE PASSWORD</password>
</server>
</servers>
</settings>