I have a Jersey-2 based web service with a dependency on Hadoop-HDFS. Hadoop-HDFS, itself has a dependency on Jersey-1. A conflict is arising as bother jerseys define javax.ws.rs.core.Application
. On my local machine, things "work" because Jersey2 is first in the classpath, but when I deploy to another machine, things break because Jersey-1 is first. It would be great if Jetty had a way to give precedence to Jersey-2, but my research turned up no options for doing this. Is there a way?
I cannot exclude the transitive Jersey-1 dependency outright, as it breaks the hadoop client.