Is it possible to use only the command line to Run jetty
with only a specified war
file and Context Path.
Something like :
Use the jetty runner.
java -jar jetty-runner.jar my.war
With Maven, you can install by adding to your pom.xml
:
...
...
org.apache.maven.plugins
maven-dependency-plugin
2.3
package
copy
org.mortbay.jetty
jetty-runner
7.5.4.v20111024
jetty-runner.jar
Run:
mvn package
And use as:
java -jar target/dependency/jetty-runner.jar target/*.war
http://www.eclipse.org/jetty/documentation/current/runner.html
http://central.maven.org/maven2/org/eclipse/jetty/jetty-runner/