Increase the default Java heap available to Maven (required for Java SE 6)
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
Prepare the source for release:
Checkout a clean copy of the trunk to release using command line svn.
Do not use Eclipse to do the checkout. The extra dot (.) files created by Eclipse throws off the rat:check processing.
Use mvn -P pedantic verify
to verify the source has the required headers before trying to release.
Do a dry run of the release:prepare step:
$ mvn -Papache-release 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. You will be prompted for the following information : * Release version - take the default * SCM release tag - DO NOT TAKE THE DEFAULT -: : 0.1-incubating * New development version - take the default * GPG Passprhase
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
$ svn commit -m "fixing formatting for release" 3. 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. 4. Verify signatures ([Verifying release signatures](http://incubator.apache.org/rave/release-process.html#verify_signatures))
Once any failures or required updates have been committed to svn, rollback the release prepare files:
$ mvn -Papache-release release:rollback
Prepare the release
Run the "release:prepare" step for real this time. You'll be prompted for the same version information.
$ mvn release:prepare -Papache-release -DpreparationGoals="clean install cargo:package"
Backup (zip or tar) your local release candidate directory in case you need to rollback the release after the next step is performed.
Perform the release
This step will create a maven staging repository and site for use in testing and voting.
$ mvn release:perform -Papache-release -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.* *The maven-release-plugin is configured with goals "deploy site site:deploy" and will deploy the site files to a staging-site directory on people.apache.org.*
Put the release candidate up for a vote
http://www.apache.org/dev/release.html
http://incubator.apache.org/guides/releasemanagement.html
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 by -
[RESULTS]
Put the release candidate up for an Incubator PMC vote
Create a VOTE email thread on general@incubator to record votes as replies, like this
After the vote has been open for at least 72 hours, has at least three +1 Incubator PMC votes and no -1 votes, then post the results to the vote thread by -
[RESULTS]
Finalizing a release
Promote the staged nexus artifacts -
Right click on the closed staging repo (org.apache.rave-XXX) and select Promote.
Copy the distribution artifacts over to the distribution area
$ ssh ${user.name}@people.apache.org
$ mkdir /www/www.apache.org/dist/incubator/rave/${project.version}
$ cd /www/www.apache.org/dist/incubator/rave/${project.version}
$ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip
$ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.asc
$ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.md5
$ wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-parent/${project.version}/rave-parent-${project.version}-source-release.zip.sha1
Make sure all the copied files have g+rw set and only o+r set
$ find . -user ${user.name} -type f | xargs chmod 664 $ find . -user ${user.name} -type d | xargs chmod 775
Note: All of the artifacts are in the maven repos, but we may create an assembly to publish in future releases
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.
Reply to the initial vote email and prepend to the original subject -
[CANCELED]
Rollback the version upgrades in trunk by either -
Restore the 0.1-rc1.tar.gz and run
$ mvn -Papache-release release:rollback
Manually revert the versions in trunk to the prior version and commit
Delete the svn tag created by the release:perform step -
$ svn del https://svn.apache.org/repos/asf/incubator/rave/tags/0.1-incubating -m "deleting tag from rolled back release"
Drop the nexus staging repo
Remote the staged site
Make the required updates that caused the vote to be canceled
On unix 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 ...