title: Exclude all the jar's from webapp/WEB-INF/lib
body: <p>I have the third party jar's in my WEB project placed at <code>/src/main/webapp/WEB-INF/lib/</code></p>
  
  <p>I have mentioned the dependency for all the <strong>required</strong> JAR's in the <strong>pom.xml</strong>.
  Now, Since the dependencies are defined in POM, the JAR's will be automatically packed in the <code>lib</code> folder.</p>
  
  <ul>
  <li>I want to exclude all the JAR's in the <code>lib</code>.</li>
  <li>The Dependency JAR's should be packaged inside the lib while building the WAR</li>
  </ul>
  
  <p><strong>I CANT DELETE THE <code>LIB</code> FROM WEB-INF BECAUSE ITS USED IN LOCAL DEVELOPMENT</strong></p>
  
  <p>This is what I've tried so far:</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;configuration&gt;
      &lt;packagingExcludes&gt;META-INF/context.xml&lt;/packagingExcludes&gt;
      &lt;webResources&gt;
        &lt;resource&gt;
          &lt;directory&gt;src/main/webapp/WEB-INF/lib&lt;/directory&gt;
          &lt;excludes&gt;
            &lt;exclude&gt;**/**&lt;/exclude&gt;
          &lt;/excludes&gt;
        &lt;/resource&gt;
      &lt;/webResources&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Any Idea?</p>