-
-
Notifications
You must be signed in to change notification settings - Fork 300
Home
kenglxn edited this page Nov 6, 2014
·
9 revisions
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>)"
- http://central.sonatype.org/pages/ossrh-guide.html
- http://central.sonatype.org/pages/apache-maven.html
NB: Do not use maven release plugin!