[m2] Global override of scope version

2006-01-12 Thread Kees de Kooter
I am packaging a war and amazingly it twice as large in size compared to the old ant build. I notice a couple of things: 1. a lot of jars (e.g. junit) are being packaged that really should only have provided or test scope. The reason is that some poms forgot to give junit test scope. 2. a lot of

Re: [m2] Global override of scope version

2006-01-12 Thread Henry Isidro
Hello Kees, Seems to be a transitive dependency issue. Check this out: http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-CanIdisabletransitivedependencies%3F HTH, Henry Kees de Kooter wrote: I am packaging a war and amazingly it twice as large in size compared to the old ant build. I

Re: [m2] Global override of scope version

2006-01-12 Thread Stephen Duncan
If you state a dependency directly in your POM, then the scope you set (even if determined by dependency managmeent) will override any broader scopes specified by transitive dependencies. So, you if you declare a junit dependency with test scope, that should overrride any other scope set by other