title: Maven: dependency appears in effective pom but not in dependency tree
body: <p>Working on a multi-module project.</p>
  
  <pre><code>GrandParent
          \
           Parent
               \
               Child
  </code></pre>
  
  <p><code>GrandParent</code> has <code>rogue_1</code> module in its <code>&lt;dependencyManagement&gt;</code> section as <strong>provided</strong> !</p>
  
  <p><code>Parent</code> does <strong>NOT</strong> have <code>rogue_1</code> in its <code>pom.xml</code> at all.</p>
  
  <p><code>Child</code> does <strong>NOT</strong> have <code>rogue_1</code> as a direct dependency in its <code>pom.xml</code>.</p>
  
  <p>However it includes several other projects some of which <em>may</em> include <code>rogue_1</code>. (at least one <strong>does</strong> depend on <code>rogue_1</code>)</p>
  
  <p>To be on the safe side, on <strong>ALL</strong> <code>Child</code>'s dependencies I have added exclusions as follows:</p>
  
  <pre><code>&lt;dependency&gt; &lt;!-- a direct dependency of Child --&gt;
      &lt;groupId&gt;erso&lt;/groupId&gt;
      &lt;artifactId&gt;galen&lt;/artifactId&gt;
      &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;resistance&lt;/groupId&gt;
              &lt;artifactId&gt;rogue_1&lt;/artifactId&gt;
          &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>(in case for example <code>galen.erso</code> is bringing in the <code>resistance.rogue_1</code>)</p>
  
  <p><strong>However</strong>: <code>rogue_1</code> <strong>DOES</strong> end up being displayed as a dependency in the outcome of</p>
  
  <p><strong><code>mvn help:effective-pom</code></strong></p>
  
  <p>(as <strong>provided</strong> !)</p>
  
  <p>It is <strong>NOT</strong> in the ouctome of </p>
  
  <p><code>mvn dependency:tree</code></p>
  
  <p>Any suggestions?</p>