title: Exclude all transitive dependencies of a single dependency
body: <p>In Maven2, to exclude a single transitive dependency, I have to do something like this:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;sample.group&lt;/groupId&gt;
    &lt;artifactId&gt;sample-artifactB&lt;/artifactId&gt;
    &lt;version&gt;1&lt;/version&gt;
     &lt;exclusions&gt;
       &lt;exclusion&gt;
         &lt;groupId&gt;sample.group&lt;/groupId&gt;
         &lt;artifactId&gt;sample-artifactAB&lt;/artifactId&gt;
       &lt;/exclusion&gt;
     &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The problem with this approach is that I have to do this for every transitive dependency contributed by <code>sample-artifactB</code>.</p>
  
  <p>Is there a way to use some sort of wildcard to exclude all transitive dependencies at once instead of one-by-one?</p>