博客详情

maven web项目中使用tomcat7插件 (原创)

作者: 朝如青丝暮成雪
发布时间:2018-10-26 06:41:58  文章分类:maven   阅读(1499)  评论(0)


pom.xml中配置tomcat插件, 无须将项目发布到外部真实的tomcat即可运行。


  <plugin>
  <groupId>org.apache.tomcat.maven</groupId>
  <artifactId>tomcat7-maven-plugin</artifactId>
  <version>2.2</version>
  <configuration>
     <port>8081</port> 
     <path>/</path>
  </configuration>
</plugin>


项目如何运行:

mvn tomcat7:run  


tomcat7插件的其他命令 :

tomcat7:run
tomcat7:deploy
tomcat7:deploy-only
tomcat7:exec-war
tomcat7-exec-war-only
tomcat7:help
tomcat7:redeploy
tomcat7:redeploy-only
tomcat7:run-war
tomcat7:run-war-only
tomcat7:shutdown
tomcat7:standalone-war
tomcat7:standalone-war-only
tomcat7:undeploy




关键字:  tomcat7  maven
评论信息
暂无评论
发表评论

亲,您还没有登陆,暂不能评论哦! 去 登陆 | 注册

博主信息
   
数据加载中,请稍候...
文章分类
   
数据加载中,请稍候...
阅读排行
 
数据加载中,请稍候...
评论排行
 
数据加载中,请稍候...

Copyright © 叮叮声的奶酪 版权所有
备案号:鄂ICP备17018671号-1

鄂公网安备 42011102000739号