我知道我可以单独致电mvn site-deploy
,但如何在mvn clean deploy
的构建过程中启动网站部署?
答案 0 :(得分: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>