title: Exclude META-INF/maven folder from the generated jar file
body: <p>I am trying to create a jar file which has all the necessary classes extracted within the jar. But for few dependent jar like <a href="http://mvnrepository.com/artifact/log4j/log4j/1.2.17" rel="noreferrer">log4j</a>, it creates some folders inside <code>META-INF/maven/*</code>. I have a limitation that the server in which I will be placing the generated jar file will not have Internet connectivity. So if there is any content in this <code>META-INF/maven/*</code> folder then it gives me an error. </p>
  
  <p>My maven descriptor looks like the following</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;addMavenDescriptor&gt;false&lt;/addMavenDescriptor&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;minimizeJar&gt;true&lt;/minimizeJar&gt;
                  &lt;finalName&gt;myclient&lt;/finalName&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>I am able to extract the required class files in the generated jar but the maven folder is still getting generated under <code>META-INF</code>. I have to manually delete the folder to make everything work. Please advice on how to automate this removal of maven folder from the generated jar file. </p>