I am having a pom.xml with many dependency sections. Many of these dependency jars are having junit jar embedded in it, and hence I want to exclude it from the dependency of each jar, like below -
<dependency>
<groupId>abcd</groupId>
<artifactId>xxdd</artifactId>
<version>0.0.0.1</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
The problem is, for all dependency do I have to give this code section to exclude junit jar?? Is there a way to exclude globally from all the dependencies?
Thanks