Nearer is nearer in the transitivity tree (if they have the same
depth, it is undefined).

So declaring it in your own POM should fix this.

In beta-1, you will hopefully be able to select from nearer and latest
(with latest now being the default, with the exception of a version
specified in the pom being built).

Note that at any point using a range of [1.5.3] will make 1.4.3 an
invalid choice and force that version. Versions without set notation
are treated as "suggestions" for which to select within the
intersection of all the valid sets.

Cheers,
Brett

On 8/26/05, Ralph Pöllath <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> my project has transitive dependencies on both asm 1.5.3 (from cglib
> 2.1_2, which I fixed locally, see [1]) and 1.4.3 (from hibernate
> 3.0.5). The one that ends up in my war is 1.4.3, which unfortunately
> seems to be incompatible with something else I'm using [2].
> 
>  From reading [3], I thought I could force m2 to use asm 1.5.3 by
> listing it as a direct dependency of my project, but that doesn't
> work. m2 -X reveals that both jars get selected, but then 1.5.3 gets
> removed (removed - nearer found: 1.4.3). What does the "nearer found"
> actually mean? Nearer to what?
> 
> For now, I can tweak the hibernate POM in my local repository, but
> I'm wondering what a better solution to the general problem could
> look like.
> 
> Cheers,
> -Ralph.
> 
> [1] http://jira.codehaus.org/browse/MEV-66
> [2] java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit
> (IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/
> String;)V
> [3] http://maven.apache.org/maven2/dependency-mechanism.html
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to