title: Maven Modules with Variable as Version number
body: <p>I got a Maven project with the following structure:</p>
  
  <p>Module A (parent), Submodule B and Submodule C</p>
  
  <p>In the parent pom.xml I am using a variable for settings the version of all projects:</p>
  
  <pre><code>...
      &lt;version&gt;${revision}&lt;/version&gt;
  ...
      &lt;properties&gt;
          &lt;revision&gt;1.1&lt;/revision&gt;
      &lt;/properties&gt;
  ...
      &lt;modules&gt;
          &lt;module&gt;moduleB&lt;/module&gt;
          &lt;module&gt;moduleC&lt;/module&gt;
      &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Module C is my distribution package which uses the shade plugin for packaging everything into one single jar.</p>
  
  <p>In the submodules I set the parent like this:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;group&lt;/groupId&gt;
      &lt;artifactId&gt;moduleA&lt;/artifactId&gt;
      &lt;version&gt;${revision}&lt;/version&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>Now I want to use Module C in another project, however I only get the following error when doing so:</p>
  
  <p>Failed to execute goal on project newProject: Could not resolve dependencies for project group:newProject:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at group:moduleC:jar:1.1: Failed to read artifact descriptor for group:moduleC:jar:1.1: Could not find artifact group:parent:pom:${revision} in nexus (NEXUS_URL)</p>
  
  <p>I assume the problem is, that the variable value is not filled in when referencing Module C as dependency. How can I solve this issue? I already tried to clean the project before building and forcing to update all artifacts without success.</p>