title: Maven managed dependencies - resolving ${project.version} from parent pom
body: <p>How is placeholder <code>${project.version}</code> resolved for managed properties from parent pom? I've expected that it is resolved globally, so when the parent pom has version 2, <code>${project.version}</code> would also be resolved to version 2.</p>
  
  <p>In parent pom I have:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;groupId&gt;my.group&lt;/groupId&gt;
  &lt;artifactId&gt;parent&lt;/artifactId&gt;
  &lt;version&gt;2&lt;/version&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  
  &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;my.group&lt;/groupId&gt;
              &lt;artifactId&gt;dep&lt;/artifactId&gt;
              &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;     
  </code></pre>
  
  <p>In child I use </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;parent&gt;
      &lt;groupId&gt;my.group&lt;/groupId&gt;
      &lt;artifactId&gt;parent&lt;/artifactId&gt;
      &lt;version&gt;2&lt;/version&gt;
  &lt;/parent&gt;
  &lt;version&gt;1&lt;/version&gt;
  &lt;artifactId&gt;child&lt;/artifactId&gt;
  </code></pre>
  
  <p>But the artifact <code>my.group.dep.1.jar</code> is used, instead of <code>my.group.dep.2.jar</code>. So the placeholder is resolved to the version of the project <strong>using</strong> the managed dependency, and not those of the project <strong>defining</strong> the dependency.</p>
  
  <p>Is that expected behaviour? I'm using <strong>maven 3.0.4.</strong></p>