title: Maven copying applicationContext.xml from src/main/resources to target/myproject/WEB-INF
body: <p>At the moment, the default I think, it copies to </p>
  
  <pre><code>target/myproject/WEB-INF/classes
  </code></pre>
  
  <p>so when deploying it does not pick up the context.  </p>
  
  <p>Also, i want to reference a server specific config file <em>database.properties</em>, I want to put it in tomcat/conf and then reference it in <em>applicationContext.xml</em>, how can I do this ?</p>
  
  <p>Also(2), I am under the impression that this is a fairly standard and decent way to set things up - please correct me if I am wrong.</p>
  
  <p><em>edit</em>
  for the server specific config file I user this</p>
  
  <pre><code>&lt;context:property-placeholder 
        location="file:${catalina.home}/conf/database.properties" 
        ignore-unresolvable="true"
   /&gt;
  </code></pre>