You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tommaso Teofili <to...@gmail.com> on 2010/11/14 08:49:23 UTC

deploying site to local directory

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

Re: deploying site to local directory

Posted by Tommaso Teofili <to...@gmail.com>.
Thanks very much Dennis!
Regards,
Tommaso

2010/11/14 Dennis Lundberg <de...@apache.org>

> 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
>
>

Re: deploying site to local directory

Posted by Dennis Lundberg <de...@apache.org>.
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