mvn -X site > out.txt

Then scan out.txt in a file editor for cglib references. At the top,
it will show all your dependencies, and all their transitive
dependencies, and all THEIR transitive dependencies etc in a little
text tree. You'll probably see that one of those has cglib/cglib as a
dependency, which is bringing it in. Add the excludes node to that
artifact to eliminate it.

Wayne

On 1/22/07, Lewandowski, Eric <[EMAIL PROTECTED]> wrote:
Hi,

I use Hibernate3 in my project. Hibernate3 needs cglib/cglib as
dependent jar. This was a problem for us because cglib/cglib use asm/asm
1.5.3 as dependent jar.
So, we decide to exclude cglib/cglib form Hibernate3 dependencies and
add cglib/cglib-nodep. This works fine.... but sometimes maven add
cglib/cglib and cglib/cglib-nodep as dependencies in our war file.

We generate maven site and saw that all our Hibernate dependencies used
cglib/cglib-nodep. cglib/cglib is indicated as transitive dependency but
we do not know which artifact needs cglib/cglib.

So, is there a maven command to understand why maven add cglib/cglib as
transitive dependency ? For example, I look for a such explanation :
cglib/cglic is added because required by artifact XXX

Sincerely,
Eric Lewandowski

---------------------------------------------------------------------
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