Generate a jar with embedded Jetty using maven jetty plugin?
问题 I use the mvn jetty:run goal from the maven jetty plugin to start my web application project, built using maven. Now I want to create a fat jar with embedded Jetty so that I will be able to start my app using java -jar . Is there a way to use the maven jetty plugin to generate a fat jar with embedded Jetty? 回答1: MarianP already answered your question in the comment. Add your jetty dependencies in your pom.xml <!-- jetty dependencies --> <dependency> <groupId>org.eclipse.jetty</groupId>