HowTo Release Apache Oltu
This short guide is for volunteers that intend to cover the role of Release Manager
Prerequisites
- Install/Configure GPG - The artifacts that are deployed to the ASF central repository need to
be signed. To do this you will need to have a public and private keypair. There is a very good
guide that will
walk you though this.
- Install Apache Maven 2.2.1 or higher. 2.2.0 has a bug that will produce invalid checksums; we strongly
encourage our committers to install Apache Maven 3.0.4.
Configuration
Apache Maven
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.
ASF settings
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
Release steps
Prepare the source for release
- Clean up JIRA so the Fix Version in issues resolved since the last release includes this release
version correctly. Also, transition any Resolved issues to the Closed state.
- Update the text files in a working copy of the project root:
- Update the CHANGES based on the Text release reports from JIRA.
- Review and update README if needed.
- Commit any changes back to svn:
svn commit -m "updating files for release"
.
- Perform a full build and deploy the SNAPSHOT artifacts:
Get source tree
- Only for new major releases (like 1.0.0 to 1.1.0):
Create a sub-branch from which to make the release.
Releasing from a branch will allow any cosmetic changes that need to be made for the release to be
approved to be done without preventing other more disruptive advances in the trunk from potentially
causing problems with the release. It also provides a future maintenance branch (like 1.0.x.)
A branch can be made by running:
mvn release:branch -DbranchName=1.0.x
- Checkout a clean copy of the trunk/branch to release using command line svn:
svn checkout https://svn.apache.org/repos/asf/oltu/trunk/ release
Prepare the release
- Do a dry run of the release:prepare step.
mvn release:prepare -DdryRun=true
The dry run will not commit any changes back to SVN and gives you the opportunity to verify that the
release process will complete as expected.
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.
- Verify that the release process completed as expected:
- The release plugin will create pom.xml.tag files which contain the changes that would
have been committed to SVN. The only differences between pom.xml.tag and its corresponding
pom.xml file should be the version
number.
- If other formatting changes have been made you should review the changes and then commit them:
svn commit -m "fixing formatting for release"
- Assuming the .tag files look OK you may proceed and do any other validation you feel
necessary. The following list may be helpful:
- Check release.properties and make sure that the scm properties have the right version.
Sometimes the scm location can be the previous version not the next version.
- Verify signatures: On Un*x platforms the following command can be executed:
for file in `find . -type f -iname '*.asc'`
do
gpg --verify ${file}
done
You'll need to look at the output to ensure it contains only good signatures:
gpg: Good signature from ...
gpg: Signature made ...
- Once any failures or required updates have been committed to svn, rollback the release prepare files:
- Run the release:prepare step for real this time. You'll be prompted for the same version
information and optionally your GPG passphrase again.
Perform the release
-
From the directory where you have launched release:prepare execute (this step will create a maven staging repository):
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.
- Verify the staged artifacts in the Nexus repository:
- https://repository.apache.org/
- Enterprise --> Staging
- Staging tab --> Name column --> org.apache.oltu
- Navigate through the artifact tree and make sure that all binary,
javadoc,
sources, and
tests jars, as well as
poms, ... have
.asc (GPG signature) and checksum files (see
Repository FAQ and
Detached Signatures).
The oltu-sources-dist-X.Y.tar.gz and
oltu-sources-dist-X.Y.zip files shall likewise have signature and checksum files.
- Close the Nexus staging repo:
- https://repository.apache.org/
- Enterprise --> Staging
- Staging tab --> Name column --> org.apache.oltu
- Right click on the open org.apache.oltu-XXX staging repo and select
Close.
- Add the distribution artifacts to the build area (the grab-binaries.sh
script is versioned under the committer space of Oltu SVN).
ssh asf-id@people.apache.org
cd /x1/builds/oltu
bash grab-binaries.sh REPO_ID VERSION
-
This step will create the staging site: From the directory where you have launched release:perform execute:
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"
Vote the Release
- Create a VOTE email thread on dev@oltu
to record votes as replies, e.g.:
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)
- Create a DISCUSS email thread on dev@oltu for any vote questions, e.g.:
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/)
- Perform a review of the release and cast your vote. For more details on Apache releases see
https://www.apache.org/dev/release.html.
- A -1 vote does not necessarily mean that the vote must be redone, however it is usually a
good idea to rollback the release if a -1 vote is received
(see "Recovering from a vetoed release" below).
- After the vote has been open for at least 72 hours, has at least three +1 PMC votes and no -1 votes, then
post the results to the vote thread, replying to the initial email prepending [RESULT] to the
original subject and include a list of every binding +1, 0 and -1 vote.
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.
Finalize the Release
- Promote the staged nexus artifacts:
- https://repository.apache.org/
- Enterprise --> Staging
- Staging tab --> Name column --> org.apache.oltu
- Right click on the closed org.apache.oltu-XXX staging repo and select Release.
- Add the distribution artifacts to the distribution area
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/
- Update the
JIRA versions
page to mark the version as Released, and set the date to the date that
the release was approved. You may also need to make a new release entry for the next release.
Announce the Release
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
Recovering from a vetoed release
- Reply to the initial vote email prepending [CANCELED] to the original subject.
- Rollback the version upgrades in trunk by either:
- Restore the 0.1-rc1.tar.gz and run
or
manually revert the versions in trunk to the prior version and commit
- Delete the svn tag created by the release:perform step:
svn rm https://svn.apache.org/repos/asf/oltu/tags/X.Y -m "deleting tag from rolled back release"
- Drop the Nexus staging repo:
- https://repository.apache.org/
- Enterprise --> Staging
- Staging tab --> Name column --> org.apache.oltu
- Right click on the closed org.apache.oltu-XXX staging repo and select Drop.
- Make the required updates that caused the vote to be canceled.
- Spin another release attempt!