My project has dependencies lib-A
and third-party lib-B:1.0
in my pom. But lib-A
depends on lib-b:2.0
. From my understanding, if lib-A
had a shaded version of lib-b
then that would solve the problem, correct? But the issue is lib-b
is a third-party dependency which I have no control over.
Is there a work around so my project and lib-A
will work correctly with different version of lib-b
?
Workaround is to shade
lib-b
with your project.Edit :
Create new project say
shaded-lib-b
withlib-b
as dependency and in your project you need have dependency forshaded-lib-b
and now package name oflib-b
will bemy.shaded.example
pom.xml for shaded-lib-b