title: Replace property file value with another value dynamically- Spring maven
body: <p>i have 2 external properties security.properties and env.properties and i have a key in security.properties as key1 and i want to replace this key1 value based on the env.properties key1</p>
  
  <p>ex:</p>
  
  <pre><code>security.properties
  hibernate.connection.url=jdbc:oracle:thin:@localhost:4521/NGI
  
  env.properties
  jdbc.url=jdbc:oracle:thin:@localhost:4521/NGI (it defers based on the environment)
  </code></pre>
  
  <p>i want to replace the hibernate.connection.url to jdbc.url based on the loaded environment.</p>
  
  <p>I tried the following option, but i get a build failure error</p>
  
  <pre><code>&lt;configuration&gt;
             &lt;file&gt;target/${project.artifactId}/security.properties&lt;/file&gt;
             &lt;replacements&gt;
                 &lt;replacement&gt;
                     &lt;token&gt;${hibernate.connection.url}&lt;/token&gt;
                     &lt;value&gt;${jdbc.url}&lt;/value&gt;
                 &lt;/replacement&gt;         
             &lt;/replacements&gt;
         &lt;/configuration&gt;
  </code></pre>
  
  <p>please share your suggestions</p>