This short guide is for volunteers that intend to cover the role of Release Manager
As of Maven 2.1.0 you can now encrypt your servers passwords. We highly recommend that you follow this guide to set your master password and use it to encrypt your ASF password in the next section.
Using the instructions from the previous step encrypt your Sonatype password and add the following servers to your ~/.m2/settings.xml file. You may already have other servers in this file. If not just create the file.
<?xml version="1.0" encoding="UTF-8"?>
<settings>
...
<servers>
<server>
<id>apache.snapshots.https</id>
<username>simonetripodi</username>
<password>{put your encrypted password here}</password>
</server>
<server>
<id>apache.releases.https</id>
<username>simonetripodi</username>
<password>{put your encrypted password here}</password>
</server>
</servers>
...
<profiles>
<profile>
<id>apache</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<mavenExecutorId>forked-path</mavenExecutorId>
<gpg.keyname>19FEA27D</gpg.keyname>\
<!-- optional -->
<gpg.passphrase>your-gpg-passphrase</gpg.passphrase>
</properties>
</profile>
</profiles>
...
</settings>You can find a settings.xml template in our SVN committers space
svn commit -m "updating files for release"
mvn clean deploy
mvn release:branch -DbranchName=1.0.x
svn checkout https://svn.apache.org/repos/asf/oltu/trunk/ release
mvn release:prepare -DdryRun=true
If you cancel a release:prepare before it updates the pom.xml versions, then use the release:clean goal to just remove the extra files that were created.
svn commit -m "fixing formatting for release"
for file in `find . -type f -iname '*.asc'`
do
gpg --verify ${file}
donegpg: Good signature from ... gpg: Signature made ...
mvn release:rollback
mvn release:prepare
mvn release:perform [-Duser.name=<your_apache_uid>]
If your local OS userid doesn't match your Apache userid, then you'll have to also override the value provided by the OS to Maven for the site-deploy step to work. This is known to work for Linux, but not for Mac and unknown for Windows.
ssh asf-id@people.apache.org cd /x1/builds/oltu bash grab-binaries.sh REPO_ID VERSION
cd target/checkout svn checkout https://svn.apache.org/repos/asf/oltu/site/ staging-site mvn -P site site-deploy -Dsite.deploymentBaseUrl=file:///<absolute path to/<staging-site/version>> cd staging-site svn add <version> svn commit -m "staging site for release"
To: "Apache Oltu Developers List" <dev@oltu.apache.org> Subject: [VOTE] Release Apache Oltu X.Y Hi, We solved N issues: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311100&styleName=Html&version=X.Y There are still a couple of issues left in JIRA: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12311100&status=1 SVN source tag (r9999999): https://svn.apache.org/repos/asf/oltu/tags/X.Y/ Staging repo: https://repository.apache.org/content/repositories/orgapacheoltu-[YOUR REPOSITORY ID]/ Staging binaries: http://people.apache.org/builds/oltu/ Staging site: http://incubator.apache.org/oltu/X.Y/ PGP release keys (signed using ABCDEFG): http://www.apache.org/dist/oltu/KEYS Vote will be open for 72 hours. [ ] +1, let's get it ruuuumbleeeeee!!! [ ] +/-0, fine, but consider to fix few issues before... [ ] -1, nope, because... (and please explain why)
To: "Apache Oltu Developers List" <dev@oltu.apache.org>
Subject: [DISCUSS] Apache Oltu X.Y
Discussion thread for vote on <version> release candidate, with SVN source tag (r9999999).
For more information on the release process, check out http://www.apache.org/dev/release.html
Some of the things to check before voting are:
- does "mvn rat:check" pass on the source
- can you build the contents of source-release.zip and svn tag
- do all of the staged jars/zips contain the required LICENSE and NOTICE files
- are all of the staged jars signed and the signature verifiable
- is the signing key in the project's KEYS file and on a public server (i.e. http://www.apache.org/dist/oltu/)
To: "Apache Oltu Developers List" <dev@oltu.apache.org>
CC: "Apache Oltu PMC List" <private@oltu.apache.org>
Subject: [RESULT] [VOTE] Release Apache Oltu X.Y
Hi,
The vote has passed with the following result :
+1 (binding):
Antonio Sanso
Tommaso Teofili
Stuart "Pid" Williams
Simone Tripodi
+1 (non binding):
Mario Rossi
John Doe
I will promote the artifacts to the central repo.ssh asf-id@people.apache.org cd /x1/www/www.apache.org/dist/oltu/ mv /x1/builds/oltu/sources/* sources/ mv /x1/builds/oltu/binaries/* binaries/
Make an announcement about the release on the user@oltu, dev@oltu, and announce@apache.org lists as per the Apache Announcement Mailing Lists page
From: YOUR_APACHE_USERNAME@apache.org To: "ASF Announcements" <announce@apache.org>, "Apache Oltu Users List" <user@oltu.apache.org> CC: "Apache Oltu Developers List" <dev@oltu.apache.org> Subject: [ANNOUNCE] Apache Oltu X.Y The Apache Oltu Team is pleased to announce the release of Apache Oltu X.Y. The Oltu project will deliver a Java development framework mainly aimed to build OAuth-aware applications. Release Notes: (put JIRA release notes here) Have Fun, (committer name), on behalf of the Apache Oltu PMC
mvn release:rollback
svn rm https://svn.apache.org/repos/asf/oltu/tags/X.Y -m "deleting tag from rolled back release"