Skip to content

Commit

Permalink
disabled auto-push on release - doing local checkout on release:perform
Browse files Browse the repository at this point in the history
  • Loading branch information
rimmington committed Aug 24, 2012
1 parent e8d0313 commit 95f8fa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions maven.readme
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Release
4. Do a dry run:
mvn release:prepare -DdryRun
5. If all goes well, it's time to release. Since this alters git repository
state and pushes to github, it's best to create another branch:
state, it's best to create another branch:
git checkout -b release-[version]
6. Do the release, accepting the default values when prompted:
mvn release:clean release:prepare release:perform
Expand All @@ -79,10 +79,10 @@ Release
git checkout master
git merge release-[version]
git commit -m "merge completed release branch [version]"
10. Push to github:
git push

If anything goes wrong during step 6, you can roll back with the following
commands:
git tag -d v[version]
git branch -D release-[version]
git push origin --delete release-[version]
git push origin :refs/tags/v[version]
git branch -D release-[version]
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
<releaseProfiles>release</releaseProfiles>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
Expand Down

0 comments on commit 95f8fa9

Please sign in to comment.