Skip to content

Maven deploy

hohwille edited this page Jan 2, 2013 · 8 revisions

Maven deploy

In order to deploy project artifacts to maven central repo follow these steps:

  • prepare the release (run tests, remove snapshot versions, etc.). E.g. mvn pom:refactor -DartifactId=mmm-util-core -DnewVersion=3.0.0 -Doverwrite=true -DxmlEncoding=UTF-8
  • commit the changes
  • create a tag (<module>/<version>)
  • perform a build for deployment (you need the PGP key and pgp/gpg installed) mvn clean deploy -P mmm.deploy
  • go to https://oss.sonatype.org/ and login to verify that the deployed bundle appears in the queue
  • For further details see OSSRH guide
Clone this wiki locally