It’s like:
java -jar $jettyHome/start.jar -Dwar.location=myApp.war -DcontextPath=/myApp OPTIONS=default,plus,jsp
java -jar jetty-runner.jar my.war
Using Maven, you can install it by adding to your pom.xml:
...
...
< groupId>org.apache.maven.plugins
maven-dependency-plugin
2.3
package
copy
org.mortbay.jetty
jetty-runner
7.5.4.v20111024< /version>
jetty-runner.jar
plugins>
Run:
mvn package
And used as:
< p>
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/
You can use only commands Run jetty with only specified war file and context path.
It’s like:
java -jar $jettyHome/start.jar -Dwar.location=myApp.war -DcontextPath=/myApp OPTIONS=default,plus,jsp
Use jetty runner.
java -jar jetty-runner.jar my.war
Using Maven, you can install it by adding to your pom.xml:
...
...
< groupId>org.apache.maven.plugins
maven-dependency-plugin
2.3
package
copy
org.mortbay.jetty
jetty-runner
7.5.4.v20111024< /version>
jetty-runner.jar
Run:
mvn package
And used 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/