title: Maven Change a value in a file based on profile
body: <p>I have a properties file called ApplicationResources.properties in my application with a property that changes depending on the environment. Let us say the property is:</p>
  
  <pre><code>     resources.location=/home/username/resources
  </code></pre>
  
  <p>and this value is different when the application is executed during development and when the application goes into production.</p>
  
  <p>I know that I can use different profiles in Maven to perform different build tasks in different environments. What I want to do is somehow replace the value of the resources.location in the properties file based on the Maven profile in use. Is this even possible?</p>