I have configured jetty to run my web application using the jetty maven. Jetty is supposed to be a light alternative for development and therefore it doesn’t need all the stuff that is in web.xml. More specifically, I want to remove a filter in web.xml.
I tried to use the overrideDescriptor configuration property, but this only allows me to override the web.xml, not replace it. Therefore, the filter is still there.
Any ideas how I can remove the filter without modifying the original web.xml file?
Since there is no answer, I’ll post my solution, which is not perfect.
The downside of this approach is that you have to maintain two almost identical web.xml files. I have not found a solution that will allow me override the original web.xml file and remove a listener.