maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Lundberg <denn...@apache.org>
Subject Re: deploying site to local directory
Date Sun, 14 Nov 2010 11:35:22 GMT
On 2010-11-14 08:49, Tommaso Teofili wrote:
> Hi all,
> Does anyone know how to deploy a Maven generated site to a directory without
> specifying the <distributionManagement> inside the POM?
> Something like "mvn site-deploy -Ddeploysomewhere=file:///somewhere/here".
> Thanks in advance for your help.
> Cheers,
> Tommaso
> 

It's not possible with site-deploy.


For staging a site you can specify a directory on the command line:

mvn site:stage -DstagingDirectory=C:\stagingArea\myProject\

http://maven.apache.org/plugins/maven-site-plugin/stage-mojo.html#stagingDirectory


For deploying a staged site you can specify a URL on the command line:

mvn site:stage-deploy -DstagingSiteURL=http://yoururl.com/

http://maven.apache.org/plugins/maven-site-plugin/stage-deploy-mojo.html#stagingSiteURL


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message