How do I deploy a site?
Author: Deron Eriksson
Description: This tutorial describes how to deploy a documentation site.
Tutorial created using: Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)


Page:    1 2 >

The mavenSW site lifecycle is responsible for the generation and deployment of a site of documentation for a maven project. The final phase of the site lifecycle, "site-deploy", is responsible for deploying the site documentation to a server. Different protocols can be used, such as file, scp, and webdav. The ftpW protocol is currently broken at the time of this writing (it has issues with directories), but it does have an unreleased fix that could very possibly be released by the time you read this.

So, to deploy a site, we need to perform a "mvn site-deploy". Typically, I perform a "mvn clean site-deploy" to ensure that the documentation is up-to-date. For convenience I created an EclipseSW external tool configuration to perform this maven command:

Name:mvn clean site-deploy
Location:${maven_exec}
Working Directory:${project_loc}
Arguments:clean site-deploy

The ${maven_exec} variable is a string substitution variable that points to my mvn.bat file at C:\dev\apache-maven-2.0.8\bin\mvn.bat.

The external tool configuration is shown here:

External Tool Configuration

(Continued on page 2)

Page:    1 2 >


Related Tutorials: