Releasing to the Maven Central -
- Add OSSRH server credentials to settings.xml
<server>
<id>ossrh</id>
<username>ossrh_jira_id</username>
<password>ossrh_jira_pwd</password>
</server>
-
Export GPG Passphrase to build environment -
export GPG_PASSPHRASE=<Your Passphrase>
-
Trigger deployment -
./mvnw deploy -Drelease=true
. Settingrelease=true
will activate all profiles required for releasing to Maven Central.
Synchronizing to Maven Central note from Releasing to Central doc:
Upon release, your component will be published to Central: this typically occurs within 30 minutes, though updates to search can take up to four hours.