Swagger with Jersey2 on Jetty Embedded without web.xml and Spring MVC
All configurations are done with code, no web.xml, no Spring. Builds into a shaded jar with dependencies and can be run with java -jar jarfile.jar
If you don't want to actually do this from scratch, but just want the goodness of a framework that has easy Swagger, Jersey 2 and Jetty backing, you should look at https://github.com/caffinc/jetter.
mvn clean package
java -jar <output.jar>