Introduction

This document gives step-by-step instructions for deploying the Maven current references. The primary audience is Maven PMC.

Prerequisite

Be sure that:

  • you have all Maven servers defined in your settings.xml. For more information, please refer to Committer settings .
  • you have created your GPG keys. For more information, please refer to Making GPG Keys .

Deploy Maven Current References

  1. Do a fresh check out of a release tag of Maven
    $ svn checkout https://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.X maven-2.0.X
    
  2. Execute the site goal for the maven-2.0.X project
    maven-2.0.X$ mvn site -Preporting
    
  3. Verify the documentation before deploying

    You could also use the stage goal of the Maven Site Plugin to verify the site output. For instance:

    maven-2.0.X$ mvn site:stage -Preporting -DstagingDirectory=/tmp/maven-2.0.X
    
  4. Deploy to people.apache.org
    maven-2.0.X$ mvn site-deploy -Preporting
    

    It will create a new folder 2.0.X in /www/maven.apache.org/ref/ on the Apache server.

    Note: It will take an hour or so to sync.

  5. Update the current ref symlink to point the last Maven release
    • Connect you to people.apache.org and go to /www/maven.apache.org/ref/ folder.
    • Create a symlink from 2.0.X folder to current :
      ref$ ln -s 2.0.X/ ./current
      

    Note: The 2.0.X folder is the last release of Maven.