我用来tomcat6-maven-plugin
在我的 Web 应用程序上运行集成测试。这将启动 Tomcat 并在运行测试之前在其中部署我的 Web 应用程序。效果很好!
但我想同时运行另一个 Web 应用程序GeoServer,以使一些新的集成测试正常工作。最好的方法是什么?
是否可以将 GeoServer .war 添加到开始使用的 Tomcat 实例中tomcat6-maven-plugin
?如何?
这是我当前的tomcat6-maven-plugin
配置:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>8087</port>
<fork>true</fork>
<useTestClasspath>true</useTestClasspath>
</configuration>
<executions>
<execution>
<id>run</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>shutdown</id>
<phase>post-integration-test</phase>
<goals>
<goal>shutdown</goal>
</goals>
</execution>
</executions>
</plugin>