I have a multimodule project (Apache JAMES Server) having dependencies
on javax.mail:mail:1.4.1 artifact. I manage the dependency in the
dependencyManagement of the parent pom and then I declare the dependency
in each module depending on that artifact.
Now I know that geronimo publish its own implementation of the javamail
specification under the id
org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:1.5-SNAPSHOT
Is there a simple way for me to tell maven that everytime a module asks
for javax.mail:mail:1.4.1 I want it to give the geronimo implementation
instead?
The only hack I found is declaring the dependency as "provided" in each
module and then having the parent pom to declare the real dependency,
but I don't like it, it is an hack and if I have transitive
depenendencies on javax.mail it fails again.
Any suggestion?
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]