On Fri, Apr 10, 2009 at 9:41 AM, 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!
What happens if you publish to file:///tmp/website?
Maven uses the 'target' directory as its work area, trying to publish
there doesn't make sense. And ${basedir} is different in each
submodule so as you've discovered, it's not going to work when
inherited.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]