Hi, I'm a maven newbie and want to globally exclude sub dependencies from being built into my war.
Lets say my war depends on artifactA and artifactB with a scope of compile. artifactA depends on log4j artifactB depends on the servlet api I want to include artifactA and artifactB in the war but don't want to include log4j or the servlet api because they are provided by the container (jboss). I realise I can do this using an <exclusions> element inside my <dependency>s but this requires me to exclude log4j from A and servlet from B. This gets more complicated when I depend on many more artifacts with many more dependencies. I'd like a way to globally exclude log4j and servlet from all dependencies... is there a way to do this? Thanks, Lance.
