我有一个网络应用程序,我想使用tomcat7通过maven启动。
在我的pom.xml文件中,我有这个tomcat插件:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
</configuration>
</plugin>
我跑的时候:
mvn tomcat:run-war
我的战争部署在tomcat中,但我也想在de path中启动浏览器
http://localhost:8080/
我发现jetty插件可以执行此操作,但我想在tomcat插件中执行此操作。
我需要做些什么才能实现这个目标?
答案 0 :(得分:0)
使用mvn tomcat7:deploy而不是