0
我目前正在使用「聲明」插件來生成out網站的API文檔。Maven deploy將插件輸出聲明到不同的項目
我想將文檔從API分離到不同的項目中,這些項目將作爲持續交付的一部分一起部署到同一個tomcat服務器。
所以我現在需要的是修改maven配置,它將「知道」其他項目並將輸出部署到它。
這裏是字正腔圓的Maven插件配置,我現在有:
<plugin> <groupId>org.codehaus.enunciate</groupId> <artifactId>maven-enunciate-plugin</artifactId> <version>1.26.2</version> <executions> <execution> <phase>prepare-package</phase> <goals> <goal>docs</goal> </goals> <configuration> <docsDir>${project.build.directory}/docs</docsDir> <docsDir>${project.build.directory}/${warName}/docs</docsDir> <configFile>${basedir}/src/main/resources/enunciate.xml</configFile> </configuration> </execution> </executions> </plugin>
所以,現在我真的不知道如何在<docsDir>