简体   繁体   English

在生产中运行jetty-maven-plugin

[英]Running jetty-maven-plugin in production

I'm working on smart new web application, and I like jetty-maven-plugin that helps me in my work. 我正在开发智能的新Web应用程序,并且我喜欢jetty-maven-plugin,它可以帮助我完成工作。

Did somebody tryied running app with jetty-maven-plugin in production environment? 有人在生产环境中尝试过使用jetty-maven-plugin运行应用程序吗? What are pros & cons? 优点和缺点是什么? Are there any security or performance issues? 是否存在任何安全性或性能问题?

The jetty-maven-plugin is a development tool and is not recommended as a production deployment mechanism. jetty-maven-plugin是一种开发工具,不建议将其用作生产部署机制。 Since you are deploying a war file then you should look to using the jetty distribution for production deployment, alternately you can look to just using jetty embedded to start up your webapp and then you are free to structure your own application in any form you like, be it a main() method or building your own start up mechanism or just using something like the maven appassembler plugin if you like. 由于您正在部署战争文件,因此应该考虑使用jetty发行版进行生产部署,或者,您可以选择仅使用jetty Embedded来启动webapp,然后您可以自由地以自己喜欢的任何形式来构建自己的应用程序,它可以是main()方法,也可以构建自己的启动机制,也可以根据需要使用诸如maven appassembler插件之类的东西。

So while there may not be any known security or performance issue related to the jetty-maven-plugin for use in production deployment, neither it nor maven itself should be viewed as a replacement for standard production deployment practices. 因此,尽管可能不存在与用于生产部署中使用的jetty-maven-plugin相关的任何已知的安全性或性能问题,但不应将其或maven本身视为标准生产部署实践的替代。

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

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