伙计们,我知道在 maven(在 eclipse 中)中运行 tomcat7 插件非常容易,但由于我是 maven 结构的新手,我无法弄清楚我正在使用“tomcat:run”运行 maven build 并且正在工作,但我切换了到 pom.xml 中配置的 maven 插件 tomcat7 它启动它并停止并给出构建成功消息。我如何改变它继续听?
这是我的tomcate插件设置
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<addContextWarDependencies>true</addContextWarDependencies>
<fork>true</fork>
<path>/</path>
<port>8080</port>
<httpsPort>8443</httpsPort>
<keystoreFile>C:/Users/Sohail Haider/.keystore</keystoreFile>
<keystorePass>apexsohail</keystorePass>
</configuration>
<executions>
<execution>
<id>start-tomcat</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run-war</goal>
</goals>
</execution>
<execution>
<id>stop-tomcat</id>
<phase>post-integration-test</phase>
<goals>
<goal>shutdown</goal>
</goals>
</execution>
</executions>
</plugin>