在Tomcat Maven插件中,tomcat7-maven-plugin,如何调用目标,tomcat7:deploy,包后阶段?你能给我简明的样本pom文件吗?
感谢。
答案 0 :(得分:2)
为插件添加执行并将其绑定到包阶段后的阶段,即验证或安装..
<build>
<plugins>
<plugin>
<dependency>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>deploy</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>