Skip to content

Release and Deployment

xitep edited this page May 25, 2017 · 1 revision

How to make a release and deploy to maven central

  • See http://central.sonatype.org/pages/apache-maven.html
  • In short:
    1. mvn release:prepare release:perform -Psign -Pregular-build
    2. Checkout the corresponding tag
    3. mvn clean deploy -Psign -Pregular -Prelease
    4. Go to https://oss.sonatype.org/
    5. In the "staging repositories", verify the uploaded artifacts
    6. "Close" the uploaded staging repo and resolve all reported errors
    7. Finally "Release" the staging repo
    8. It takes a few minutes for the artifact to become available in the direct release repo and some more time until synchronized to other repos. (Generally it takes a few hours until the artifacts make it into the index of https://search.maven.org.)

How are snapshots deployed

Continuous integration is set up at travis. Whenever master builds successfully, artifacts are automatically uploaded to sonatypes snapshot repository. The deployment is set up according to this very nice article.