Use "mvn %some_other_goal% site:stage -DstagingDirectory=%desired_site_dir%"
Regards, Stevo. On Fri, Apr 10, 2009 at 6:41 PM, David Hoffer <[email protected]> wrote: > Can someone help with a simple site plugin question? > > I am just trying to build a site of a multi-module project and want to > publish it to my local hard drive. Here is my pom. > > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-site-plugin</artifactId> > <version>2.0</version> > </plugin> > </plugins> > <distributionManagement> > ... > <site> > <id>website</id> > <url>file://${basedir}/target/website</url> > </site> > </distributionManagement> > > If I run mvn site:deploy it creates only part of the site at > ${basedir}/target/website, the root content is there and just one project > module, it's like it just quit! > > If I run mvn site:stage it creates a valid site with all links working but > at a project specific staging location. > > If I run mvn site:stage-deploy it creates a valid site but all links are > back up to the original module target locations. > > None of these options create a valid web site under the specified URL > location. How can I do this? >
