This is for internal use only.
- In pom.xml, update the version number in the <version> tag. Usually you'll increase the minor version by one.
- Commit this change with commit message
Prepare release X.Y.ZZ
, where X.Y.ZZ is the new version number - Push to GitHub
- In the project's GitHub Releases page, draft a new release.
- In "Choose a tag", tag the release with
vX.Y.ZZ
, where X, Y, and ZZ are the new version numbers. egv0.1.99
- Release title should be
Release X.Y.ZZ
, egRelease 0.1.99
- Click on the Publish Release button
- A GitHub action will be automatically triggered to publish the new release on Maven Central
It can take a while (30 minutes or more) for the release to be publicly viewable.
When ready to publish a repo, do this:
mvn clean deploy -Possrh
This deploys to Sonatype's snapshot/staging repos.
If the version ends with -SNAPSHOT, the artifact will be deployed to the snapshots repository. If it doesn't, it will instead be uploaded to the staging repository.
Once a non-artifact is on Sonatype, do the following:
- Login to the Sonatype Repository Manager with your Sonatype credentials https://s01.oss.sonatype.org/
- Move to the “Staging Repositories” section on the left.
- Choose the staging repository to promote.
- “Close” the staging repository.
- “Release” the staging repository.