In my project I am forced to use these packages:
com.sparkjava:spark-core:2.3
, which ends up usingjetty-server:9.3.2.v20150730
org.apache.spark:spark-core_2.10:1.2.0
, which ends up usingjetty-server:8.1.14.v20131031
Note that com.sparkjava
and org.apache.spark
have nothing to do with each other. They are called both spark funnily.
The issue here is that both jetty versions are incompatible, so if I force jetty 8.X
the system crashes, if I force jetty 9.X
the system crashes again, I get java.lang.NoClassDefFoundError: org/eclipse/jetty/server/ServerConnector
in one case and java.lang.NoClassDefFoundError: org/eclipse/jetty/server/bio/SocketConnector
in the other.
What I am expected to do in such a situation ?
Note: I've tried to shadow jetty, but the dependency manager resolves just one (9.X by default, or 8.X if I force it) and then it shadows it, so it's really not helping.