Suppose we have an application that rely on lib1.jar and lib2.jar.
In lib1.jar, it contains for example some slf4j-v1 classes.
In lib2.jar, it contains same but different version slf4j-v2 classes.
Now I am building my own jar. What is the best way to resolve the version conflict problem?
In case anyone is interested in the answer, I ended up using “jarjar” to rename the package in one jar.