Artifacts from dependencies can be excluded by declaring an
element inside a
But in this case it\'s needed to
Some ideas:
Maybe you could simply not inherit from the parent in that case (and declare a dependency on base
with the exclusion). Not handy if you have lot of stuff in the parent pom.
Another thing to test would be to declare the mail
artifact with the version required by ALL-DEPS
under the dependencyManagement
in the parent pom to force the convergence (although I'm not sure this will solve the scoping problem).
javax.mail
mail
???
mail
dependency from log4j if you're not using the features relying on it (and this is what I would do):
log4j
log4j
1.2.15
provided
javax.mail
mail
javax.jms
jms
com.sun.jdmk
jmxtools
com.sun.jmx
jmxri