我知道我可以mvn site-deploy
单独调用,但是如何在构建期间启动站点部署mvn clean deploy
?
问问题
116 次
1 回答
1
将site
插件添加到 pom 中<build>
,以在您选择的阶段运行适当的目标。
<plugin>
<artifactId>maven-site-plugin</artifactId>
<executions>
<execution>
<id>site deploy</id>
<phase>your_choice_of_phase</phase>
<goals>
<goal>site</goal>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
于 2014-11-11T21:26:49.787 回答