Created
December 16, 2010 16:55
-
-
Save tonit/743640 to your computer and use it in GitHub Desktop.
some
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First make sure you prepare your environment http://wiki.ops4j.org/display/ops4j/Releasing. | |
Use Maven 3. | |
mvn -Prelease,repos.sonatype.staging -Darguments="-Prelease,repos.sonatype.staging" release:prepare | |
mvn -Prelease,repos.sonatype.staging -Darguments="-Prelease,repos.sonatype.staging" release:perform -Dgoals=deploy -DconnectionUrl=scm:git:file:///Users/tonit/devel/oss/org.ops4j.pax.exam1/ | |
Hint: | |
1. the -DconnectionUrl is a workaround for bug http://jira.codehaus.org/browse/MRELEASE-605 | |
when using pushChanges=false in maven release plugin configuration. | |
2. -Dgoals=deploy prevent maven from deploying the (currently useless) maven site. | |
Some git cheats for rollback: | |
git rebase -i HEAD~3 | |
(remove the unwanted commits and save) | |
git tag -d exam-1.2.3 | |
Make sure to drop the ops4j staging repo on oss.sonatype.org (when closing fails only, of cause). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment