title: Maven processing ressources / replacing maven variables
body: <p>I have a Java/Maven project for building a JBoss web application.
  I am using the maven capability for filtering resources to build the live and the test version.</p>
  
  <p>To get the idea:
  I use maven variables which will be replaced in the building-process like the WAR-name in the pom.xml or the JDBC-path to the database, which should be used by the deployment (different DBs for production and test).</p>
  
  <p>The problem I have is the following:
  In the jboss-web.xml I need to set the Context-path for the deployment (live-version has the context-path '/', the test version should have the context-path '/test').
  For the maven goal 'process-resources' the variables will be replaced properly, but for the goal 'package' the source-files (with the variable declaration) are used, which leads to errors.
  How can I configure, that maven uses the processed resource files?</p>
  
  <p>Best regards and thank you,
  Christian</p>