Maven/Ivy: Identical artifact with different name in dependency

Posted by ThiamTeck on Stack Overflow See other posts from Stack Overflow or by ThiamTeck
Published on 2010-05-04T06:20:09Z Indexed on 2010/05/04 6:38 UTC
Read the original article Hit count: 207

Filed under:
|

Currently I am using Ivy for dependency management. And quite often I come across problem of getting identical jar files with different name due to transitive dependency.

Example:

<dependency>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
    <version>1.4</version>
</dependency>

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-javamail_1.4_spec</artifactId>
    <version>1.4</version>
</dependency>

I am thinking of trying out Maven as well.

Any best practice to eliminate these identical artifact in either Ivy or Maven?

© Stack Overflow or respective owner

Related posts about maven

Related posts about ivy