title: Maven war plugin copy src/main/webapp to classes
body: <p>Dear stackoverflow members, I am facing a strange issue with Maven war plugin.</p>
  
  <p>I have comfigurted my eclipse project directory structure as:</p>
  
  <pre>
  Project
  |-- pom.xml
   -- src
       -- main
          |-- java
           -- resources
           -- webapp
              |-- WEB-INF
                  -- web.xml  
  </pre>
  
  <p>When I run the maven build command, all the files present within the webapp directory are copied to the classes folder which is strange to me. The resultant directory structure in the generate war file is:</p>
  
  <pre>
  |-- META-INF
   -- WEB-INF
      -- classes
         -- 
         -- META-INF
         -- WEB-INF
  </pre>
  
  <p>I didn't expect the META-INF and WEB-INF folders within the classes folder. It's duplicating the data which is not required for the classes folder and these folders are already there at the root of the war file.</p>
  
  <p>Please let me know how to restrict the maven war builder to exclude META-INF and WEB-INF going to classes folder ? </p>