Maven setup

Put the following in ~/.m2/settings.xml. This will allow you to release and deploy to the apache maven repositories. Of course, it's best not to store your password in cleartext. See http://maven.apache.org/guides/mini/guide-encryption.html for a guide on how to make this a little more secure.

... and into Maven

mvn clean deploy -Pdeploy

This will ask for your gpg passphrase.

Login to https://repository.apache.org using your Apache SVN credentials. Click on Staging on the left. Then click on org.apache.bookkeeper in the list of repositories. In the panel below you should see an open repository that is linked to your username and IP. Select this repository and click Close. This will close the repository from future deployments and make it available for others to view.

Tag the release

Run the vote

Send a mail like the following, updating the relevant content.

To: dev@bookkeeper.apache.org
Subject: [VOTE] BookKeeper X.Y.Z Release Candidate 0
This is the first release candidate for Apache BookKeeper, version X.Y.Z.
It fixes the following issues:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12319145&styleName=Html&projectId=12311293
*** Please download, test and vote by June 5th 2012, 10:00 GMT.
Note that we are voting upon the source (tag), binaries are provided for
convenience.
Source and binary files:
https://dist.apache.org/repos/dist/dev/bookkeeper/bookkeeper-X.Y.Z-candidate-0/
Maven staging repo:
https://repository.apache.org/content/repositories/orgapachebookkeeper-169/
The tag to be voted upon:
release-X.Y.Z (21f4a4cffefaa9391b79d79a7849da9c539af834)
BookKeeper's KEYS file containing PGP keys we use to sign the release:
https://dist.apache.org/repos/dist/release/bookkeeper/KEYS
Please download the the source package, and follow the README to build
and run a bookkeeper and hedwig service.

Release the artifacts

Move the release candidate into the release directory in subversion, stripping the candidate part from its name.

Release the repository in maven. Log in to https://repository.apache.org, click on Staging on the left. Select the repository that you closed earlier, and click Release, using a description like "Apache BookKeeper X.Y.Z artifacts". This will make the artifacts publicly available.

Update the website

See Building the website and documentation. Follow the pattern used for previous releases. Add the documentation for the release, the release notes, and link in the releases page and an update in the new page.

Announce the release (NEEDS UPDATE)

Assuming 24 hours have passed since releasing the artifacts, send a mail like the following.

To: bookkeeper-dev@zookeeper.apache.org, bookkeeper-user@zookeeper.apache.org, announce@apache.org
Subject: [ANNOUNCE] Apache BookKeeper 4.1.0 released
The Apache BookKeeper team is proud to announce Apache BookKeeper version
4.1.0.
This is the second release of the Apache BookKeeper subproject of ZooKeeper.
The BookKeeper project is made up of a distributed logging service called
BookKeeper and a distributed publish/subscribe system build on top of
BookKeeper called Hedwig.
For BookKeeper release details and downloads, visit:
http://zookeeper.apache.org/bookkeeper/releases.html
BookKeeper 4.1.0 Release Notes are at:
http://zookeeper.apache.org/bookkeeper/docs/r4.1.0/releaseNotes.html<http://zookeeper.apache.org/bookkeeper/docs/r4.0.0/releaseNotes.html>
We would like to thank the contributors that made the release possible.
Regards,
The BookKeeper Team