I\'m trying to make an \"executable\" war file (java -jar myWarFile.war) that will start up a Jetty webserver that hosts the webapp contained in the WAR file I
We have figured this out by using jetty-console-maven-plugin.
Whenever you run mvn package it creates another war that can be used with java -jar whateverpackage-runnable.war
org.simplericity.jettyconsole
jetty-console-maven-plugin
1.45
createconsole
jetty-console-requestlog-plugin
jetty-console-gzip-plugin
jetty-console-ajp-plugin
jetty-console-startstop-plugin
It also generates the init.d scripts and everything for you!