Jetty Run WAR only uses the command line

You can only use the command line to run jetty with only the 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:

< 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/

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4525 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.