Skip to content

Commit

Permalink
Release preparations: make sure that changes get pushed to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
hwellmann committed Feb 4, 2012
1 parent 4e46959 commit f74f970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 67 deletions.
66 changes: 2 additions & 64 deletions README
@@ -1,65 +1,3 @@
h1. Release paxurl

If you have all required rights to release pax-url follow these steps:

1) add this into your ~/.m2/settings.xml and fill in your credentials
and local paths:

{code}

<server>
<id>sonatype.staging.snapshots.deploy</id>
<username>YOURNAME</username>
<password>SECRET</password>
</server>
<server>
<id>sonatype.staging.releases.deploy</id>
<username>YOURNAME</username>
<password>SECRET</password>
</server>

<profile>
<id>release</id>
<properties>
<gpg.passphrase>gpgpassphrase</gpg.passphrase>
<release-paxurl-altGitURL>scm:git:file:///path/to/local/repo/org.ops4j.pax.url</release-paxurl-altGitURL>
</properties>
</profile>
{code}

2) prepare the release:

{code}
mvn -Prelease,repos.sonatype.staging -Darguments="-Prelease,repos.sonatype.staging" release:prepare -DautoVersionSubmodules=true
{code}

3) perform the release (this fails):

{code}
mvn -Prelease,repos.sonatype.staging -Darguments="-Prelease,repos.sonatype.staging" release:perform
.... auth failure in site:deploy ...
{code}

4) go into the checkout directory:

{code}
cd target/checkout
{code}

5) push to oss.sonatype.org:

{code}
mvn -Prelease,repos.sonatype.staging source:jar javadoc:jar deploy
{code}

6) push to github:

{code}
git push
{code}

8) go to oss.sonatype.org and push pax-url to central:
Select Staging Repositories, org.ops4j, Close and finally Release.
The new artifacts will appear on Maven Central within an hour or so.

h1. Release Pax URL

See http://team.ops4j.org/wiki/display/ops4j/Releasing for details of the release process
3 changes: 0 additions & 3 deletions pom.xml
Expand Up @@ -73,9 +73,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
<configuration>
<pushChanges>false</pushChanges>
</configuration>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
Expand Down

0 comments on commit f74f970

Please sign in to comment.