2010/8/31 Grau Aracil, Manuel <[email protected]>:
> Is a dependency from a dependency. Suppose our project uses artifact XXX-1.0, 
> and, a jar from our project uses XXX-1.1.

If they are binary-compatible, then I suggest to choose one (the most
recent one, I suppose) and exclude the other.
If they are not, well, welcome to jar hell :-D
In fact, Maven is protecting you from a potential problem: same
classes in different jars, that *will* cripple your classloader. It's
not a Maven problem, but a Java feature.
In this case, the best approach is to migrate your project to use 1.1
version of that dependency.
You might use the Shade plugin to get a version of a library with
modified package names:
http://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html
But, in your case, I think that migration is easier... or not?

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to