Need two different version JARs in one Java app

Viewed 293

I have a Java application that includes two third party JARs (Amazon Kinesis and MaxMind GeoIP2), each using a different version of Jackson. Neither version of Jackson works with both of the third party JARs.

Furthermore, I am running Apache's maven JAR pluging - which creates an uber JAR containing all dependent classes.

Given that I can't change the third party JARs, I don't know how I'm going to be able to accomplish having each third party JAR call the appropriate version JARs of Jackson.

Any ideas?

Kinesis is expecting: com.fasterxml.jackson.dataformat » jackson-dataformat-cbor:2.6.6 com.fasterxml.jackson.core » jackson-databind:2.6.6

And GeoIP2 is expecting: com.fasterxml.jackson.core » jackson-databind:2.8.8.1

1 Answers
Related