title: Pass variables from properties file into distributionManagement tag in pom.xml
body: <p>So I have something like:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;properties-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.0-alpha-1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;initialize&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;read-properties&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;files&gt;
                              &lt;file&gt;${user.home}/build.properties&lt;/file&gt;
                          &lt;/files&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>and I have <code>distributionManagement</code> like:</p>
  
  <pre><code>&lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;local-repo&lt;/id&gt;
          &lt;url&gt;file:///${deploy.dir}/${project.artifactId}&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>I don't have a remote repository, that is why I am doing it using <code>file:///</code></p>
  
  <p><code>${deploy.dir}</code> is a property from the <code>build.properties</code> file and it will not take the value for that property.
  Why?</p>