title: Maven: how to get a war package with resources copied in WEB-INF?
body: <p>when I create a war package with maven, files and directories under the directory "src/main/resources" are copied in /WEB-INF/classes instead of /WEB-INF. How can I get them copied in /WEB-INF?</p>
  
  <p>thanks,
  rand</p>
  
  <p>UPDATE:
  in my pom now I use this:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4.3&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;copy-resources&lt;/id&gt;
                      &lt;!-- here the phase you need --&gt;
                      &lt;phase&gt;war&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;copy-resources&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;outputDirectory&gt;myapp/target/WEB-INF&lt;/outputDirectory&gt;
                          &lt;resources&gt;
                              &lt;resource&gt;
                                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                                  &lt;filtering&gt;true&lt;/filtering&gt;
                              &lt;/resource&gt;
                          &lt;/resources&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>and I launch mvn with:</p>
  
  <blockquote>
    <p>mvn -Dmaven.test.skip=true clean package resources:copy-resources</p>
  </blockquote>
  
  <p>but I got:</p>
  
  <pre><code>[INFO] One or more required plugin parameters are invalid/missing for 'resources:copy-resources'
  
  [0] Inside the definition for plugin 'maven-resources-plugin' specify the following:
  
  &lt;configuration&gt;
    ...
    &lt;outputDirectory&gt;VALUE&lt;/outputDirectory&gt;
  &lt;/configuration&gt;.
  
  [1] Inside the definition for plugin 'maven-resources-plugin' specify the following:
  
  &lt;configuration&gt;
    ...
    &lt;resources&gt;VALUE&lt;/resources&gt;
  &lt;/configuration&gt;.
  </code></pre>
  
  <p>I'm using maven 2.2 and the snippet basically is the same of the documentation
  any idea?</p>