title: How to copy a resource or another in Maven depending on the target environment?
body: <p>I have to create test war and production war, which will have a different <code>log4j.properties</code> file in the <code>WEB-INF</code> directory. I have these files <code>log4j.properties</code> (test war) and <code>dev.log4j.properties</code> (for production enivorment).</p>
  
  <p>How to copy the <code>dev.log4j.properties</code> file into <code>log4j.properties</code> file for production war?</p>