maven - Need two different version JARs in one Java app -


i have java application includes 2 third party jars (amazon kinesis , maxmind geoip2), each using different version of jackson. neither version of jackson works both of third party jars.

furthermore, running apache's maven jar pluging - creates uber jar containing dependent classes.

given can't change third party jars, don't know how i'm going able accomplish having each third party jar call appropriate version jars of jackson.

any ideas?

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

and geoip2 expecting: com.fasterxml.jackson.core » jackson-databind:2.8.8.1

use maven shade plugin

https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html

to relocate classes.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -