Say my project is called A, and Foo and Bar are third party libraries. A depends on Foo version 1 and Bar. Bar depends on Foo version 2:
A -> Foo version 1
\-> Bar
\-> Foo version 2
With this Maven shade plugin config in my project's, A's, POM
<relocation>
<pattern>Foo</pattern>
<shadedPattern>FooA</shadedPattern>
</relocation>
the version I use, Foo version 1, will be renamed/relocated as FooA.
Question: is it possible to rename/relocate Foo version 2 instead? I know this can be done if I can modify Bar's POM - however, I cannot, since I'm not the distributor of Bar.