Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.84 KB

HOWTO_RELEASE.md

File metadata and controls

25 lines (21 loc) · 1.84 KB

Official guide from Sonatype

How to upload artifact to Sonatype staging repository for Maven Central promoting

  1. Configure PGP
  2. Update your maven settings.xml with valid values (See settings.xml for the quick help).
  3. mvn release:clean release:prepare.
  4. After successful run you will be able to find tag in the vcs for new version of your artifact.
  5. mvn release:perform.
  6. After successful run you will be able to find your artifact in the Sonatype staging repository.
  7. Because of <autoReleaseAfterClose>false</autoReleaseAfterClose> for nexus-staging-maven-plugin you will see 2 buttons Release and Drop, pay attention that Maven Central Release can't be undone, that is why double check all that you push to the Sonatype staging repository and only then press the Release. Drop button simply delete your artifact from Sonatype staging repository. If you feel confidence you can just set <autoReleaseAfterClose>true</autoReleaseAfterClose> for nexus-staging-maven-plugin, in this situation release to the Maven Central will be performed automatically without extra steps with buttons (Release, Drop). As an alternative way of performing Maven Central Release you can use nexus-staging-maven-plugin goals: nexus-staging:release as equivalent for Release button on the UI of the Sonatype staging repository and nexus-staging:drop as equivalent for Drop button.

Notes

'-SNAPSHOT' deployments repository