title: pick environment specific configuration xml in maven build
body: <p>i have a web application using spring framework and using maven to build war files. </p>
  
  <p>i have to environment specific configuration files. i want to configure maven to pick up the specific configuration file while building a war. as of now, i have to do the environment related changes manually but that's something error prone.</p>
  
  <p>I know there is a environment tag in pom.xml where i can specify the environment but so far i found example of picking up properties file using that, like <a href="https://stackoverflow.com/questions/1149352/using-maven-for-multiple-deployment-environment-production-development">this</a>. </p>
  
  <p>Please help me with automating this part.</p>