Apache Tomcat Maven Plugin for Tomcat 7.x命令大全
Apache Tomcat Maven Plugin for Tomcat 7.x命令大全
宁静的夜海 发表于2年前
Apache Tomcat Maven Plugin for Tomcat 7.x命令大全
  • 发表于 2年前
  • 阅读 34
  • 收藏 0
  • 点赞 1
  • 评论 0

Apache Tomcat Maven Plugin :: Tomcat 7.x 2.2

  The Tomcat Maven Plugin provides goals to manipulate WAR projects within the

  Tomcat 7.x servlet container.


This plugin has 14 goals:


tomcat7:deploy

  Deploy a WAR to Tomcat.


tomcat7:deploy-only

  Deploy a WAR to Tomcat without forking the package lifecycle.


tomcat7:exec-war

  Create a self executable jar file containing all necessary Apache Tomcat

  classes. This allows for using just java -jar mywebapp.jar to run your webapp

  without needing to install a Tomcat instance. More details here.


tomcat7:exec-war-only

  Same as exec-war goal without forking the package lifecycle.


tomcat7:help

  Display help information on tomcat7-maven-plugin.

  Call mvn tomcat7:help -Ddetail=true -Dgoal=<goal-name> to display parameter

  details.


tomcat7:redeploy

  Redeploy a WAR in Tomcat. (Alias for the deploy goal with its update parameter


  set to true.)


tomcat7:redeploy-only

  Redeploy a WAR in Tomcat without forking the package lifecycle. (Alias for the


  deploy-only goal with its update parameter set to true.)


tomcat7:run

  Runs the current project as a dynamic web application using an embedded Tomcat


  server.


tomcat7:run-war

  Runs the current project as a packaged web application using an embedded

  Tomcat server.


tomcat7:run-war-only

  Same as run-war goal without forking the package cycle.


tomcat7:shutdown

  Shuts down all possibly started embedded Tomcat servers. This will be

  automatically done through a shutdown hook or you may call this Mojo to shut

  them down explictly.


  By default the shutdown goal is not bound to any phase. For integration tests

  you might want to bind it to post-integration-test.


tomcat7:standalone-war

  This Mojo will create an executable war file with embedded Tomcat that is also


  capable of being deployed elsewhere.


tomcat7:standalone-war-only

  This Mojo will create an executable war file with embedded Tomcat that is also


  capable of being deployed elsewhere.


tomcat7:undeploy

  Undeploy a WAR from Tomcat.


共有 人打赏支持
粉丝 2
博文 11
码字总数 1809
×
宁静的夜海
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: