1
我在pom
如何使用maven tomcat插件将war从孩子pom部署到Tomcat?
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/casemanager</path>
<update>true</update>
</configuration>
</plugin>
具有以下插件Maven项目当我做了mvn tomcat7:run
,我的战争部署就好了。但是我对
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<executions>
<execution>
<id>tomcat-run</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<fork>
true
</fork>
</configuration>
</execution>
<execution>
<id>tomcat-shutdown</id>
<goals>
<goal>shutdown</goal>
</goals>
<phase>post-integration-test</phase>
</execution>
</executions>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
我想让Tomcat在pre-integration-test
阶段运行我的Maven项目的模块之一以下配置。现在当我做一个mvn verify
时,它启动服务器,但没有部署我的战争。我甚至尝试提供warSourceDirectory
。我在这里错过了什么吗?