The ASM library has made a number of incompatible releases, which causes
nasty problems. I think this might be what you've struck.

Even the latest version of cglib requires ASM 1.x. If something else
requires ASM 2.x or ASM 3.x then you're in trouble because the ASM
versions are incompatible.

Fortunately, there is a variant of cglib that hides ASM internally. So
first, add this dependency to your pom to pull in cglib 2.1.3 with
internal asm:
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib-nodep</artifactId>
            <version>2.1_3</version>
        </dependency>

Then use "mvn dependency:tree" to find out which dependency is trying to
use cglib, and add this to it:
                <exclusion>
                    <groupId>cglib</groupId>
                    <artifactId>cglib</artifactId>
                </exclusion>
Repeat until dependency:tree shows no dependency on the original "cglib"
library.

That worked for me.

BTW: it would be great if maven had a "dependency alias" feature, so
that we could say that "cglib-nodep" replaces "cglib". But there is no
such thing AFAIK.

Regards,
Simon


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

Reply via email to