Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Latest commit

 

History

History
72 lines (55 loc) · 1.74 KB

RELEASE.md

File metadata and controls

72 lines (55 loc) · 1.74 KB

Nailgun Maven Central deployment process

  • Create Sonatype Jira account

https://central.sonatype.org/pages/ossrh-guide.html

  • Install gpg

brew install gpg

  • Generate gpg key

gpg --gen-key Follow instructions

GPG_TTY=$(tty) EXPORT GPG_TTY

  • Create private Maven settings by adding the following to ~/.m2/settings.xml
sonatype-nexus-staging sonatype_username sonatype_password sonatype-nexus-snapshots sonatype_username sonatype_password release-sign-artifacts true gpg gpg_passphrase true release-sign-artifacts
  • Modify all pom.xml files to exclude -SNAPSHOT from version

  • Run deploy with Maven

mvn clean deploy -Prelease-sign-artifacts

  • Promote release to production

Login to https://oss.sonatype.org, navigate to 'Staging Repository', find the newly created repository and press 'Close', wait for operation to complete, then press 'Release'. It will promote repository from staging to Central.