title: Maven issue to build one module using revision property
body: <p>Recently we tried to deploy files using jenkins providing <codE>${revision}</code> property for the build ( Maven 3.3.9 ).
  It worked OK on json creating <code>0.0.1-SNAPSHOT</code> for dev builds and <code>0.0.1-RC</code> for releases, but we have an issue using maven on developer machines.
  We have multi-module maven project with version defined in parent and some modules uses others as dependencies. Both build it from jenkins and use maven locally, to integrate with IDEs and run tests before pushing it into repository.
  When we try to build a single module, maven does not recognize <code>${revision}</code>, although it works fine when we mention all modules  e.g. <code>mvn clean install -pl appserver</code>, we see</p>
  <blockquote>
  <p>Failed to execute goal on project appserver: Could not resolve dependencies for project com.org:appserver:war:0.0.1-local: Failed to collect dependencies at com.org:my-kinesis-events:jar:0.0.1-local: Failed to read artifact descriptor for com.org:my-kinesis-events:jar:0.0.1-local: Could not transfer artifact com.org:my-parent:pom:${revision} from/to central: Failed to transfer .../repository/maven-central/com/org/my-parent/${revision}/my-parent-${revision}.pom. Error code 500, Server Error -&gt; [Help 1]</p>
  </blockquote>
  <p>We tried to use:</p>
  <ul>
  <li><p><code>-Drevision=0.0.1-local</code></p>
  </li>
  <li><code>
   &lt;profile&gt;
         &lt;id&gt;default-version&lt;/id&gt;
         &lt;activation&gt;
           &lt;property&gt;
             &lt;name&gt;!revision&lt;/name&gt;
           &lt;/property&gt;
           &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
         &lt;/activation&gt;
         &lt;properties&gt;
           &lt;revision&gt;0.0.1-local&lt;/revision&gt;
           &lt;project.version&gt;0.0.1-local&lt;/project.version&gt;
         &lt;/properties&gt;
       &lt;/profile&gt;
   </code>
  </li>
  </ul>
  <p>but the only thing that works is a build for parent that that builds the module and all modules it depends on:</p>
  <p><code>mvn clean install -pl appserver,my-kinesis-events,module1,module2,...</code></p>
  <p>Although the above works it requires from the team to define custom run configuration in IDE, each time they need something.</p>
  <p>Did somebody also experienced this issue and found the solution?</p>
  <p>Parent pom snippet:
  <code>
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 <a href="http://maven.apache.org/xsd/maven-4.0.0.xsd%22" rel="nofollow noreferrer">http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;</a>&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.org&lt;/groupId&gt;
  &lt;artifactId&gt;my-parent&lt;/artifactId&gt;
  &lt;version&gt;${revision}&lt;/version&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;name&gt;My Parent module&lt;/name&gt;<br />
  &lt;modules&gt;
  &lt;module&gt;../my-tools&lt;/module&gt;
  &lt;module&gt;my-kinesis-events&lt;/module&gt;
  ....
  &lt;/modules&gt;
  .....
  &lt;/project&gt;
  &lt;dependencyManagement&gt;
  &lt;dependencies&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;my.org&lt;/groupId&gt;
  &lt;artifactId&gt;my-kinesis-events&lt;&lt;/artifactId&gt;
  &lt;version&gt;${project.version}&lt;/version&gt;
  &lt;dependency&gt;
  &lt;dependencies&gt;
  &lt;/dependencyManagement&gt;
  </code></p>
  <p>Module pom snippet:
  <code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 <a href="http://maven.apache.org/xsd/maven-4.0.0.xsd%22" rel="nofollow noreferrer">http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;</a>&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;artifactId&gt;appServer&lt;/artifactId&gt;
  &lt;parent&gt;
  &lt;groupId&gt;com.org&lt;/groupId&gt;
  &lt;artifactId&gt;my-dsp&lt;/artifactId&gt;
  &lt;version&gt;${revision}&lt;/version&gt;
  &lt;relativePath&gt;..&lt;/relativePath&gt;
  &lt;/parent&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;AppServerAPI&lt;/name&gt;
  &lt;description&gt;Application Server&lt;/description&gt;
  &lt;dependencies&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;com.org&lt;/groupId&gt;
  &lt;artifactId&gt;my-openrtb&lt;/artifactId&gt;
  &lt;/dependency&gt;
  .....
  &lt;/dependencies&gt;
  ....
  &lt;/project&gt;
  </code></p>