title: pom.xml is not able to read properties from external property file
body: <p>I have a pom.xml and i have defined a property in it which is being referred from an external file - </p>
  
  <p>Please Find my pom.xml below :-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
      xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.src&lt;/groupId&gt;
      &lt;artifactId&gt;common&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;common&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;scm&gt;
          &lt;connection&gt;scm:svn:http://127.0.0.1/dummy&lt;/connection&gt;
          &lt;developerConnection&gt;scm:svn:https://127.0.0.1/dummy&lt;/developerConnection&gt;
          &lt;tag&gt;HEAD&lt;/tag&gt;
          &lt;url&gt;http://127.0.0.1/dummy&lt;/url&gt;
      &lt;/scm&gt;
  
      &lt;properties&gt;
          &lt;salcommon.version&gt;${common-version}&lt;/salcommon.version&gt;
      &lt;/properties&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;secureaccesslnk-maven&lt;/id&gt;
              &lt;url&gt;https://nexus-maven/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
          &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;secureaccesslnk-maven-release&lt;/id&gt;
              &lt;url&gt;https://nexus-maven-release/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;secureaccesslnk-maven-snapshot&lt;/id&gt;
              &lt;url&gt;https://nexus-maven-release/&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.common&lt;/groupId&gt;
              &lt;artifactId&gt;sal-logging&lt;/artifactId&gt;
              &lt;version&gt;${salcommon.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.common&lt;/groupId&gt;
              &lt;artifactId&gt;sal-auditor&lt;/artifactId&gt;
              &lt;version&gt;${salcommon.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/java&lt;/directory&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.properties&lt;/include&gt;
                      &lt;include&gt;**/*.tmpl&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.properties&lt;/include&gt;
                      &lt;include&gt;**/*.tmpl&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;extensions&gt;
              &lt;extension&gt;
                  &lt;groupId&gt;org.apache.maven.wagon&lt;/groupId&gt;
                  &lt;artifactId&gt;wagon-webdav-jackrabbit&lt;/artifactId&gt;
                  &lt;version&gt;1.0-beta-7&lt;/version&gt;
              &lt;/extension&gt;
          &lt;/extensions&gt;
  
          &lt;plugins&gt;
              &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.0&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;phase&gt;initialize&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;read-project-properties&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;files&gt;
                  &lt;file&gt;common.version.properties&lt;/file&gt;
                &lt;/files&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                  &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;0.7.4.201502262128&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;destFile&gt;${sonar.jacoco.reportPath}&lt;/destFile&gt;
                      &lt;append&gt;true&lt;/append&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;agent&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;prepare-agent&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;phase&gt;test&lt;/phase&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;attach-sources&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;jar&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>The common.version.properties details are below :-</p>
  
  <pre><code>common-version=3.0.1.0-SNAPSHOT
  </code></pre>
  
  <p>Even though i have defined the plugin to read the property from external file .The property ${common-version} is not getting replaced at runtime when i am doing mvn clean install </p>
  
  <p>Error - dependencies.dependency.version' for com.common
  e a valid version but is '${common-version}'. @ line 107, column 13</p>
  
  <p>I have tried to search the net a lot but none of the resolution worked for me.Please help!</p>