title: Transitive dependencies not resolved when dependency version defined in parents dependencyManagement
body: <p>I've got a multi-module project with layout as below:</p>
  
  <pre><code>pom.xml
  projA
    trunk
      pom.xml
      projA1
        pom.xml
      projA2
        pom.xml
  </code></pre>
  
  <p>In the parent's pom I've defined <code>dependencyManagement</code> and <code>properties</code>:</p>
  
  <pre><code>&lt;properties&gt;
    &lt;javaee-api.version&gt;6.0&lt;/javaee-api.version&gt;
    &lt;log4j.version&gt;1.2.11&lt;/log4j.version&gt;
  &lt;/properties&gt;
  ...
  &lt;dependencyManagement&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;  
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;${junit.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax&lt;/groupId&gt;  
        &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
        &lt;version&gt;${javaee-api.version}&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  </code></pre>
  
  <p>pom.xml for projA2 contains:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;log4j&lt;/groupId&gt;
    &lt;artifactId&gt;log4j&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>pom.xml for projA1 contains:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
    &lt;artifactId&gt;projA2&lt;/artifactId&gt;
    &lt;version&gt;${project.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>In projA1 I'm using log4j but the dependency is transitive (from projA2).</p>
  
  <p>Now when I run <code>mvn dependency:tree -X</code> I get:</p>
  
  <pre><code>[WARNING] Invalid POM for mypackage:projA2:jar:1.0, transitive dependencies (if any) will not be available, enable debug logging for more details: Some problems were encountered while processing the POMs:
  [ERROR] 'dependencies.dependency.version' for javax:javaee-api:jar is missing. @ line 37, column 15
  [ERROR] 'dependencies.dependency.version' for log4j:log4j:jar is missing. @ line 56, column 15
  </code></pre>
  
  <p>but just below this lines I get:</p>
  
  <pre><code>[DEBUG]   testArtifact: artifact=log4j:log4j:jar:1.2.11:compile
  [DEBUG]   includeArtifact: artifact=log4j:log4j:jar:1.2.11:compile
  [DEBUG]   startProcessChildren: artifact=log4j:log4j:jar:1.2.11:compile
  [DEBUG]   endProcessChildren: artifact=log4j:log4j:jar:1.2.11:compile
  [DEBUG]   testArtifact: artifact=javax:javaee-api:jar:6.0:provided
  [DEBUG]   includeArtifact: artifact=javax:javaee-api:jar:6.0:provided
  [DEBUG]   startProcessChildren: artifact=javax:javaee-api:jar:6.0:provided
  [DEBUG]   endProcessChildren: artifact=javax:javaee-api:jar:6.0:provided
  </code></pre>
  
  <p>The only solution is to specify log4j version (<code>&lt;version&gt;${project.version}&lt;/version&gt;</code>) in projA2 pom.xml.</p>
  
  <p>Question: what am I doing wrong :-(? I don't want to specify versions that are already defined in parent's <code>dependencyManagement</code> section.</p>