I have a jar type project. This jar is an "extension module" which goes to WEB-INF/lib
of a third party webapp (which is available on a public maven repo). In pom.xml
, I have a war type dependency on that webapp.
I would like to be able run mvn jetty:run-forked
on the unextracted war file (straight from ~/.m2/repository
while adding the projects dependencies and jar artifact "virtually" to WEB-INF/lib. Doing that seemed simpler than expected as jetty initialization gets quite convoluted. I ended up messing with the jetty/maven Java source code effectively reprogramming the initialization in XML. :) Finally from looking at http://wiki.eclipse.org/Jetty/Zip_Exceptions_Reading_Jar_or_War_Files there is further trouble ahead. In fact, it seems running unexploded wars is not possible for non trivial webapps (due to "File not resolvable or incompatible with URLClassloader").
Given the current jetty/maven source, is this possible at all?
What needs to be done to get it working?