title: Error while creating consolidated jar file - no manifiest section for signature file entry javax/mail/internet/ContentDisposition.class
body: <p>I have some jar files into /libs/ and my project classes are located at /target/. To remove dependency on external folder. I want to make a consolidate jar file. Which contains all the classes from jar files found in all /libs/*.jar</p>
  
  <p>I am using following Ant script:</p>
  
  <pre><code>&lt;jar destfile="mytest.jar" basedir="target/classes"&gt;
      &lt;manifest&gt;
          &lt;attribute name="Main-Class" value="com.mytest.MyProcessor"/&gt;
      &lt;/manifest&gt;
  
      &lt;fileset dir="target/classes" includes="**/*.class"/&gt;
      &lt;zipgroupfileset dir="libs" includes="*.jar"/&gt;
  &lt;/jar&gt;
  </code></pre>
  
  <p><strong>But, when I run the jar using "java -jar mytest.jar" command, it says:</strong></p>
  
  <p>Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry javax/mail/internet/ContentDisposition.class
      at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
      at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)</p>
  
  <p>Any idea, <strong>how to make a consolidated jar</strong> that have no such issues, would be highly appreciated. I am using IntelliJ IDEA.</p>