I would like to create a standalone jar with an embedded jetty. So I have a main method which creates a WebAppContext The web.xml is located in src/main/webapp/WEB-INF):
... val web = new WebAppContext("src/main/webapp", "/") ...
Now I wonder how to easily create a fatjar and what’s the best way to do it to get my app load the web.xml. Should I copy the WEB-INF folder directly in the root dir of the jar like it is done by a war? Or should I better create a standalone war instead of a jar. What are your thoughts about that?