开发者

maven use a different directory for site source files than src/site

开发者 https://www.devze.com 2022-12-11 09:30 出处:网络
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

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?


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>

0

精彩评论

暂无评论...
验证码 换一张
取 消