简体   繁体   English

如何使用Maven将Web应用程序部署到现有的Jetty?

[英]How to deploy web application to existing Jetty using Maven?

Using mvn tomcat7:deploy I can deploy a web application to Tomcat. 使用mvn tomcat7:deploy我可以将Web应用程序部署到Tomcat。 But how can I do this with jetty? 但是我怎么能用码头做到这一点? As far as I understand it, the Maven Jetty Plugin launches its own Jetty server but can I configure it to use my existing Jetty server? 据我了解,Maven Jetty插件会启动自己的Jetty服务器,但是我可以配置它使用现有的Jetty服务器吗?

You can use the Jetty Maven plugin with either the run-war or deploy-war tasks. 您可以将Jetty Maven插件与运行部署任务一起使用。

http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#running-assembled-webapp-as-war http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#running-assembled-webapp-as-war

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM