Jetty Run War Using only command line

前端 未结 5 683
梦谈多话
梦谈多话 2020-12-22 23:48

Is it possible to use only the command line to Run jetty with only a specified war file and Context Path.

Something like :

         


        
5条回答
  •  长情又很酷
    2020-12-23 00:28

    Using jetty-runner-minimal:

    $ git clone https://github.com/kissaten/jetty-runner-minimal
    $ cd jetty-runner-minimal && mvn package
    $ java -jar jetty-runner-minimal/target/dependency/jetty-runner.jar myapp.war
    

提交回复
热议问题