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
- Do a fresh check out of a release tag of Maven, for example:
$ svn checkout https://svn.apache.org/repos/asf/maven/maven-2/tags/maven-2.2.0 maven-2.2.0
- Execute the site goal for the maven-2.2.0 project
maven-2.2.0$ mvn site -Preporting
- 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.2.0$ mvn site:stage -Preporting -DstagingDirectory=/tmp/maven-2.2.0
- Deploy to people.apache.org
maven-2.2.0$ mvn site-deploy -Preporting
It will create a new folder 2.2.0 in /www/maven.apache.org/ref/ on the Apache server.
Note: It will take an hour or so to sync.
- 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.2.0 folder to current if it is the newest stable release of Maven:
ref$ ln -s 2.2.0/ ./current