views:

60

answers:

1

I need to configure where my Maven 2 project's site files are located, by default they are src/site/, I'd like to point them to src-documentation/site, how would I override Maven's default conventin?

+1  A: 

As maven-site-plugin documentation says you need to configure plugin

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-site-plugin</artifactId>
    <version>2.0</version>
    <configuration>
      <siteDirectory>${basedir}/src-documentation/site</siteDirectory>          
    </configuration>
  </plugin>
</plugins>

cetnar
+1 for the right answer
Pascal Thivent