title: Maven Custom Parent property from Module
body: <p>I cant access, from a Maven module, to a property defined in the  <code>properties</code> section of the parent.
  As a matter of fact When I launch the build below the warName is the default one.</p>
  
  <p>This is the parent Pom</p>
  
  <pre><code>....
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.speed.pms&lt;/groupId&gt;
      &lt;artifactId&gt;PMS-Main&lt;/artifactId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
          &lt;name&gt;PMS Main Build Project&lt;/name&gt;
  
      &lt;properties&gt;
              &lt;context-root&gt;PMS-CUSTOM&lt;/context-root&gt;
          &lt;/properties&gt;
       &lt;modules&gt;
          &lt;module&gt;../PMS-WEB&lt;/module&gt;
       &lt;/modules&gt;
  ....
  </code></pre>
  
  <p>And this is the module</p>
  
  <pre><code>...
   &lt;parent&gt;
          &lt;groupId&gt;com.speed.pms&lt;/groupId&gt;
          &lt;artifactId&gt;PMS-Main&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
        &lt;/parent&gt;
      &lt;artifactId&gt;PMS-WEB&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;name&gt;PMS-WEB Webapp&lt;/name&gt;
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;web.resource.dir&gt;src/main/webapp&lt;/web.resource.dir&gt;
      &lt;/properties&gt;
      &lt;build&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;!-- Context root from parent project --&gt;
                      &lt;warName&gt;${context-root}&lt;/warName&gt;
                      &lt;webResources&gt;
                          &lt;resource&gt;
                              &lt;directory&gt;${web.resource.dir}&lt;/directory&gt;
                          &lt;/resource&gt;
                      &lt;/webResources&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  ....
  </code></pre>
  
  <p>While I can use the  ${project.parent.arctifactId} property. 
  I try also  ${project.parent.properties.context-root} but without success. It should be simple but I cant understand Which is my errror? Shouldn't be the properties inherited from the parent in a Module?</p>