title: Maven not reading application property files
body: <p>I am trying to introduce property files in my bundle (OSGI based with Spring Dynamic Modules). I want to keep properties like database URL, username, password etc. in that property file and want maven to read from that file.</p>
  
  <p>I tried to introduce filtering in my pom:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;database.username&gt;${development_user}&lt;/database.username&gt;
  &lt;/properties&gt;
  &lt;build&gt;
      &lt;filters&gt; 
           &lt;filter&gt;src/main/resources/Application_${env}.properties&lt;/filter&gt; 
      &lt;/filters&gt; 
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;bundle&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;resources&lt;/goal&gt;
                      &lt;/goals&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-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.8&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.7&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;bundle&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;bundle&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;excludes&gt;*/pom.&lt;/excludes&gt;
                  &lt;instructions&gt;
                      &lt;Bundle-SymbolicName&gt;${project.artifactId}&lt;/Bundle-SymbolicName&gt;
                      &lt;/instructions&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>I have below property in my Application_local.properties file:</p>
  
  <pre><code>development_user=dev_user
  </code></pre>
  
  <p>But when I build by bundle with command "mvn clean install -Denv=local" system inserts '${development_user}' as value in my database.xml</p>
  
  <p>can someone please help me out in resolving this issue?</p>