I have this situation:
In my maven pom of my project A, I have a dependency B which is packaged into a shaded jar. My project A is packaged to war.
When I run mvn install
it is building my war for project A and in my WEB-INF/lib I have my shaded jar of project B.
What I want to do is to exclude a specific transitive dependency C from project B when building my war. I tried using <exclusions>
to exclude the dependency C when declaring the dependency for project B but at the war packaging I still get the dependency C in the shaded jar of B.
The thing is I do not want to modify my pom of project B. I want the exclusion to be done in my war pom if possible.
Is there a way to do this ?