title: Maven - exclude the same jar from multiple dependency sections
body: <p>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 -</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;abcd&lt;/groupId&gt;
          &lt;artifactId&gt;xxdd&lt;/artifactId&gt;
          &lt;version&gt;0.0.0.1&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;junit&lt;/groupId&gt;
                  &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>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?</p>
  
  <p>Thanks</p>