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

Release to Maven Central

Florent Biville edited this page Jul 7, 2021 · 13 revisions

Prerequisites

GPG

Setup

Follow this tutorial.

Troubleshooting

SSH

Make sure you created an SSH key and added it to your Github account (see https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/).

OSSRH/Maven settings

Make sure your OSSRH JIRA account is properly set up in ~/.m2/settings.xml (see https://github.com/liquigraph/liquigraph/blob/master/deploy-settings.xml).

Release

First steps

Generate the maven plugin site (see the Zsh script in liquigraph-maven-plugin). This script assumes the project is at version XXX-SNAPSHOT and XXX is about to be released.

Once executed, update the Github pages repository (liquigraph.github.io) with liquigraph-maven-plugin/target/site (this last step can be done after the release if you move the site folder into some location outside the project tree).

Release it!

Just run:

  1. mvn release:prepare -Prelease-sign-artifacts (SCM label is liquigraph-$VERSION, which should be automatically set) and
  2. mvn release:perform -Prelease-sign-artifacts
  3. then go to https://oss.sonatype.org/ and validate the release:
    • go to staging repositories and locate Liquigraph
    • verify that all the artifacts are present and close the release
    • then release it!

Next steps

Clone this wiki locally