This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Maven Central Repository Deployment
Susheel Varma edited this page Nov 9, 2017
·
1 revision
In order to deploy to Maven central an account on Sonatype must be created with privileges to push to the org.ga4gh domain.
This can be acquired by opening a ticket on Sonatype and requesting permission via a person in a position to grant it.
An example ticket below. https://issues.sonatype.org/browse/OSSRH-34681?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
When this is acquired then:
-
Generate a public key and place it on a key server such as pgp.mit.edu
-
Encrypt your sonnatype password command (mvn --encrypt-master-password)
-
Edit settings.xml in the project to match your account.
<settings>
<servers>
<server>
<id>ossrh</id>
<username>your_sonatype_user</username>
<password>your_encrypted_password</password>
<url>https://oss.sonatype.org/</url>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>your_key_pass_phrase</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
-
Deploy with mvn deploy --settings settings.xml (where settings.xml is the path to your setting.xml)