Skip to content
Xavier Blanc edited this page Jun 3, 2019 · 2 revisions

Release naturalness-java

mvn clean

mvn release:prepare

mvn release:perform

This will push the realse into SonaType

Validate SonaType and put the release in Maven Central

Log in : https://oss.sonatype.org/#welcome

Find the stagging repository and close it

Wait and publish it

Push the tag in GitHub

git push --tags

git push origin master

If something goes wrong

Step 1: Undo the release:

git reset –hard HEAD~1 (You may have to do it a second time, depending upon when the error occurred.)

git reset –hard HEAD~1

Step 2: Delete the tag.

git tag -d tagName

git push origin :refs/tags/tagName