title: Maven: How to include ${project.version} in multi-module project
body: <p>I am using <code>maven 3.2.1</code></p>
  
  <pre><code> mvn -version
  Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00)
  Maven home: /usr/local/Cellar/maven/3.2.1/libexec
  Java version: 1.7.0_55, vendor: Oracle Corporation
  Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"
  </code></pre>
  
  <p>My module structure</p>
  
  <pre><code>projectA/
          pom.xml
          core/
               pom.xml
               business/
                       pom.xml
               persistence/
                       pom.xml
               rest/
                       pom.xml
         federated_services/
                       pom.xml
  </code></pre>
  
  <p><strong>ProjectA/pom.xml</strong></p>
  
  <pre><code>    &lt;groupId&gt;com.org&lt;/groupId&gt;
      &lt;artifactId&gt;projectA&lt;/artifactId&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
      &lt;version&gt;${global.version}&lt;/version&gt;
      &lt;properties&gt;
          &lt;global.version&gt;1.0-SNAPSHOT&lt;/global.version&gt;
      &lt;/properties&gt;
  </code></pre>
  
  <p><strong>core/pom.xml</strong></p>
  
  <pre><code>&lt;parent&gt;
      &lt;artifactId&gt;projectA&lt;/artifactId&gt;
      &lt;groupId&gt;com.org&lt;/groupId&gt;
      &lt;version&gt;${global.version}&lt;/version&gt;
      &lt;relativePath&gt;..&lt;/relativePath&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>Things are fine until here meaning <strong>core/xml</strong> can find <code>${project.version}</code>. But when I do</p>
  
  <p><strong>persistence/pom.xml</strong></p>
  
  <pre><code>   &lt;parent&gt;
          &lt;artifactId&gt;core&lt;/artifactId&gt;
          &lt;groupId&gt;com.org&lt;/groupId&gt;
          &lt;version&gt;${global.version}&lt;/version&gt;
          &lt;relativePath&gt;../../&lt;/relativePath&gt;
      &lt;/parent&gt;
  </code></pre>
  
  <p>The pom complains</p>
  
  <pre><code>[ERROR]   The project com.org:persistence:${global.version} (/Users/harith/IdeaProjects/project/core/persistence/pom.xml) has 1 error
  [ERROR]     Non-resolvable parent POM: Could not transfer artifact com.org:core:pom:${global.version} from/to local central mirror (http://maven.corp.org.com:9999/repository/public): Illegal character in path at index 68: http://maven.corp.org.com:9999/repository/public/com/org/core/${global.version}/core-${global.version}.pom and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -&gt; [Help 2]
  </code></pre>
  
  <p><strong>Question</strong><br>
  - How can I have <strong>persistence/pom.xml</strong> inherit <code>${project.version}</code> from <strong>projectA/pom.xml</strong>?</p>