Skip to content
kenglxn edited this page Nov 6, 2014 · 9 revisions

Performing the release!

must be done from command line due to gpg problem in idea

# prepare the release
mvn versions:set -DnewVersion=X.X -s ~/.m2/settings-sonatype.xml -Psonatype-oss-release
git commit -m "prepare release X.X"

# perform the release
mvn clean deploy -s ~/.m2/settings-sonatype.xml -Psonatype-oss-release

# set next snapshot
mvn versions:set -DnewVersion=X.X-SNAPSHOT -s ~/.m2/settings-sonatype.xml
git commit -m "prepare next snapshot version. (closes #<ISSUE>)"

resources

NB: Do not use maven release plugin!

Clone this wiki locally