title: Running resource filters when using jetty:run
body: <p>I'm using resource filtering on jsps, based on profiles. I'm also developing locally using <code>mvn jetty:run</code>, but the filtering phase does not run.</p>
  
  <p>How can I perform filtering using the jetty plugin?</p>
  
  <hr>
  
  <p><em>Configuration snippets</em>:</p>
  
  <pre><code>&lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.0.2&lt;/version&gt;
  &lt;configuration&gt;
      &lt;webResources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/webapp&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;error.jsp&lt;/include&gt;
              &lt;/includes&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;targetPath&gt;/&lt;/targetPath&gt;
          &lt;/resource&gt;
      &lt;/webResources&gt;
  &lt;/configuration&gt;
  &lt;/plugin&gt;
  
  &lt;profile&gt;
      &lt;id&gt;jci&lt;/id&gt;
      &lt;activation&gt;
          &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;property&gt;
              &lt;name&gt;jci&lt;/name&gt;
          &lt;/property&gt;
      &lt;/activation&gt;
      &lt;properties&gt;
          &lt;error.title&gt;Some value here&lt;/error.title&gt;
      &lt;/properties&gt;
  &lt;/profile&gt;  
  </code></pre>