Could someone explain how do people get duplicate dependencies with different versions in their war? Maybe give some examples
I cannot understand for the live of me. Maven2 has dependency mediation for transitive dependencies
Say I have:
A
- B
- C
B
- E
Now in a project X, with war packaging I add A and B as dependency.
Because of the aforementioned dependency mediation, regardless of the version of B from project A, in the war I will see a single B jar with the declared version in X.
This because maven will use the version of the closest dependency to my project.
So, what am I missing here? How do people mess this up? Looking forward to enlightenment