Re: Depend on a jar via another pom file
Well, what scope are used here? Thus is a central element to manage transitivity. Btw, you should never rely on a dependency to get a dependency you're also using. You must redeclare it in your own pom. (mvn dependency:analyze can also help you here). Cheers Le 8 janv. 2014 16:59, Omar@Gmail omarnet...@googlemail.com a écrit : I have a maven module (lets call it M) that requires aspectjrt but M already depends on another pom file that has aspectjrt within its dependency tree like so: M - middle pom - aspectjrt The problem is M would not compile unless I express the aspectjrt dependency directly in the M pom file, why? Is there a way for M to get apsectjrt via the middle pom without directly depending on aspectjrt?
Depend on a jar via another pom file
I have a maven module (lets call it M) that requires aspectjrt but M already depends on another pom file that has aspectjrt within its dependency tree like so: M - middle pom - aspectjrt The problem is M would not compile unless I express the aspectjrt dependency directly in the M pom file, why? Is there a way for M to get apsectjrt via the middle pom without directly depending on aspectjrt?
Re: Depend on a jar via another pom file
That's called a transitive dependency and this blog[1] explains nicely why you shouldn't use those. [1] http://uglycoder.blogspot.nl/2008/04/flaw-with-mavens-transitive.html Hth, Nick Stolwijk ~~~ Try to leave this world a little better than you found it and, when your turn comes to die, you can die happy in feeling that at any rate you have not wasted your time but have done your best ~~~ Lord Baden-Powell On Wed, Jan 8, 2014 at 4:56 PM, Omar@Gmail omarnet...@googlemail.comwrote: I have a maven module (lets call it M) that requires aspectjrt but M already depends on another pom file that has aspectjrt within its dependency tree like so: M - middle pom - aspectjrt The problem is M would not compile unless I express the aspectjrt dependency directly in the M pom file, why? Is there a way for M to get apsectjrt via the middle pom without directly depending on aspectjrt?