Artifacts from dependencies can be excluded by declaring an element inside a But in this case it\'s needed to
Have you tried explicitly declaring the version of mail.jar you want? Maven's dependency resolution should use this for dependency resolution over all other versions.
4.0.0
test
jruby
0.0.1-SNAPSHOT
base
es.uniovi.innova
1.0.0
javax.mail
mail
VERSION-#
provided
com.liferay.portal
ALL-DEPS
1.0
provided
pom