Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 57 Next »

Releases are now performed using Maven 2 so you need to have Maven 2 installed (see the building page).

  1. There four several artifacts which have separate release cycles (in this order): pom, resources, core, extensions.
  2. In each artifact:
    1. Check if there have been SVN commits on that artifact since the latest stable release. If there have been, you'll need to release.
      1. The parent and resources typically don't change between versions.
    2. In the artifact's topmost pom.xml, if there are links to other modules (core/pom.xml contains a property called cargo.resources.version, for example), update these to the latest release
    3. Release the artifact
    4. In the artifact's topmost pom.xml, change the links to the other modules' versions to the latest SNAPSHOT back again
  3. Before releasing, make sure what is going to be released is fully functional. In particular, run the core/samples using the all-downloadable profile (mvn clean install -Pall-downloadable).
    1. The Continous Integration for CARGO actually passes tests for all containers. Green ones are doing well (smile)
    2. If any container is not passing, move it to the all-unstable-downloadable list.
    3. Make sure all containers in the all-stable-downloadable profile pass the samples.
  4. Releases are done with the maven release plugin.
    1. You can supply your credentials on the command line (-Dusername=<username> -Dpassword=<password>), or keep them in your settings.xml file (in your .m2 directory or in your user home directory. Here's an example settings.xml:
    2. Please do a dry-run before doing the actual release to ensure there aren't any problems.
    3. The typical Maven release procedure is to execute these four commands:
      1. mvn clean install : to make sure the current artifact builds correctly (including tests)
      2. mvn clean release:prepare -DautoVersionSubmodules=true -DdryRun=true -DpreparationGoals="clean install" : the dry run, to check if everything is OK
      3. mvn clean release:prepare -DautoVersionSubmodules=true -DpreparationGoals="clean install" : the actual release preparation, with the actual tagging process
        1. If the Subversion commit fails, try executing the same command but add -Dusername=your_user_name -Dpassword=your_password (of course, replace with your own user name and password on the CARGO SCM)
      4. mvn clean release:perform -DpreparationGoals="clean install" : deploys the tagged artifacts on the Codehaus repository (itself mirrored by the Maven central repository, with a delay of 24 to 48 hours)
        1. You might get a message saying Error deploying artifact: Failed to create destination WebDAV collection (directory): unable to find valid certification path to requested target, that's because the Codehaus HTTPS servers' certificate is not installed on your computer. Please compile and run the program from http://blogs.sun.com/andreas/resource/InstallCert.java with command: java InstallCert dav.codehaus.org
  5. Log onto Cargo JIRA, release the current version and add the next version
  6. Check that the Cargo wiki is up to date. Specifically, perform the following updates:
    1. Modify the status on the home page about the delivery:
      1. Make sure the Containers list is complete
      2. Make sure the Navigation page is complete
      3. Make sure the Javadocs for the Core Containers are complete
      4. Make sure the documentation for each container is up to date. The source files (that you need to copy-paste in each container's page manually) are generated in core/documentation/target/[container's name].log.
    2. Modify the Downloads and Archived Downloads pages to update the download links
    3. Create a release notes page for the new version
    4. Export the wiki to a zipped HTML file (select all pages except for the Downloads page) and add it the Downloads page
  7. Send an announcement email to Cargo mailing lists (and to other relevent sites)
  8. Create a blog post
  • No labels