Java 在不中断集成测试执行的情况下将war部署到远程tomcat服务器
我正在使用Java 在不中断集成测试执行的情况下将war部署到远程tomcat服务器,java,maven,tomcat,maven-plugin,maven-tomcat-plugin,Java,Maven,Tomcat,Maven Plugin,Maven Tomcat Plugin,我正在使用tomcat7maven插件在本地主机Tomcat上使用mvnverify命令运行集成测试。但是,当我运行mvntomcat7:redeploy时,我希望将war部署到我的远程tomcat服务器,而不是本地主机tomcat。我怎样才能做到这一点?请导游 pom.xml <!-- Embedded integration testing with localhost Tomcat --> <plugin> <groupId>
tomcat7maven插件
在本地主机Tomcat上使用mvnverify
命令运行集成测试。但是,当我运行mvntomcat7:redeploy
时,我希望将war部署到我的远程tomcat服务器,而不是本地主机tomcat。我怎样才能做到这一点?请导游
pom.xml
<!-- Embedded integration testing with localhost Tomcat -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>start-tomcat</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run-war</goal>
</goals>
<configuration>
<fork>true</fork>
</configuration>
</execution>
<execution>
<id>stop-tomcat</id>
<phase>post-integration-test</phase>
<goals>
<goal>shutdown</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Integration tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
org.apache.tomcat.maven
tomcat7 maven插件
2.2
启动雄猫
预集成测试
打仗
真的
阻止雄猫
整合后测试
关闭
org.apache.maven.plugins
maven故障保护插件
2.18
集成测试
验证
我目前面临同样的问题。你找到解决方案了吗?没有,我完全放弃了使用嵌入式Tomcat服务器的想法。