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-bwith your project.Edit :
Create new project say
shaded-lib-bwithlib-bas dependency and in your project you need have dependency forshaded-lib-band now package name oflib-bwill bemy.shaded.examplepom.xml for shaded-lib-b