title: Maven : Remove duplicate jars from EAR
body: <p>We are using maven to build an EAR that contains WAR, the JARS are duplicated on both EAR's root and WAR's lib folder, I read about the skinny jars to remove the jars from the WAR but I don't want this as I want to keep the WAR as stand alone unit,<br>
  IS there a way to do it the other way around and remove the JARs from the EAR's root folder ?<br>
  attached is the EAR POM  </p>
  
  <pre><code>    &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-ear-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;modules&gt;
                      &lt;webModule&gt;
                          &lt;groupId&gt;com.csv.xyz&lt;/groupId&gt;
                          &lt;artifactId&gt;web&lt;/artifactId&gt;
                      &lt;/webModule&gt;
                  &lt;/modules&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.csv.xyz&lt;/groupId&gt;
          &lt;artifactId&gt;web&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;war&lt;/type&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>