title: How to override web.xml in jetty-maven-plugin when filtering
body: <p>I've got <code>${properties}</code> in my web.xml that are filtered based on profiles.  I want to use the web.xml with the final properties with jetty:run but I'm not having success yet, it always sticks with its default path to web.xml, i.e. <code>file:/home/---/Projects/project/trunk/src/main/webapp/WEB-INF/web.xml</code></p>
  
  <p>I've tried:</p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
          &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;8.1.4.v20120524&lt;/version&gt;
          &lt;configuration&gt;
              &lt;webAppConfig&gt;
                  &lt;overrideDescriptor&gt;target/project/WEB-INF/web.xml&lt;/overrideDescriptor&gt;
              &lt;/webAppConfig&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
          &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;8.1.4.v20120524&lt;/version&gt;
          &lt;configuration&gt;
              &lt;overrideWebXml&gt;target/project/WEB-INF/web.xml&lt;/overrideWebXml&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>Part of the problem is knowing which configs go with which versions because nobody seems to write that down.  Also OverrideDescriptor only adds to the web context config, based on the docs on eclipsepedia.</p>