The Jetty-maven-plugin module is a development tool and is not recommended as a production deployment mechanism. Since you are deploying a war file, you should look at using the berth distribution to deploy production, in turn you can simply use the built-in marina to launch your web application, and then you can structure your application in any form you like, be it the main method () either create your own startup engine or just use something like the maven appassembler plugin if you want.
Thus, while the security or performance issue associated with the Jetty-maven plugin for use in a production deployment may not be known, neither he nor maven should be considered a replacement for standard deployment methods.
source share