-
Notifications
You must be signed in to change notification settings - Fork 0
Release process
Andy Boothe edited this page Apr 20, 2025
·
1 revision
This page is useful for project admins with release permissions only.
Ensure that everything is working properly.
mvn clean compile test verify
It must not be a snapshot. We can't release with pending changes, so commit.
mvn versions:set -DnewVersion="x.y.z"
git add .
git commit -m '[release] prepare for release x.y.z'
This will build and push the result to Maven Central. Credentials are stored in a special $HOME/.m2/settings.xml
file.
mvn -s /path/to/settings.xml -Prelease -Pcentral deploy
Log into Maven Central and release. Click account (top right) and "View Deployments." Click "Publish."
Use a snapshot version.
mvn versions:set -DnewVersion="x.y.Z-SNAPSHOT"
git add .
git commit -m '[release] prepare for next development iteration'