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
。我在這裏錯過了什麼嗎?