Running Jetty through Maven is super simple. The only problem is lot of configurations were changed in Jetty 9. It is significantly different from, say, Jetty 6. I will keep it short. The below lines in pom.xml would get the job done:
Note that it defines a custom port and a context path as well.
Use the below command to run Jetty:
The sources are available here: