title: Maven war has META-INF folder in two places
body: <p>I'm working on a project which uses JAAS and unfortunately for me Tomcat requires a file to be put in a META-INF folder in the root of the war</p>
  
  <pre><code>app.war
    |__META-INF
    |    |___context.xml
   ...
  </code></pre>
  
  <p>I think that it's already weird since the default META-INF location for WAR's is in the classes folders.</p>
  
  <pre><code>app.war
    |__WEB-INF
    |    |__classes
    |         |__META-INF
   ...
  </code></pre>
  
  <p>So I'm using Maven, which states that anything in src/main/resources/META-INF will be copied to the appropriate place, which it does. The weird thing is that it is also creating a META-INF folder in the root of the file structure leaving me with 2 META-INF folders.</p>
  
  <p><strong>Project Structure</strong></p>
  
  <pre><code>app
    |__src/main/java
    |__src/main/resources
    |       |__META-INF
    |             |__context.xml
   ...
  </code></pre>
  
  <p><strong>After mvn package</strong></p>
  
  <pre><code> app
    |__META-INF [1]
    |__WEB-INF
    |     |__classes
    |           |__META-INF [2]
    |                  |__context.xml
   ...
  </code></pre>
  
  <p>So, if the war standard states that META-INF should be under classes folder, as in #2, why maven war creates the #1 folder. And is there a way to make it copy files into that folder instead of #2?</p>
  
  <p>Regards</p>