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: [email protected] For additional commands, e-mail: [email protected]
