title: Is it possible to get IntelliJ IDEA to generate an executable JAR manifest like Eclipse does?
body: <p>I've had to make some modifications to an old Java-based project which contains dependent JAR files in the project tree. When I last worked on this project 3 years ago, I was developing it in Eclipse and generating runnable JAR files using Eclipse's <code>File -&gt; Export...</code> function, which worked great.</p>
  
  <p>When I started working on this project again I switched to using IDEA. Following online documentation I was able to create a runnable jar using IDEA's <code>Project Structure -&gt; Artifacts</code> pane.</p>
  
  <p>However, I encountered several problems when trying to use the JAR file IDEA generates that I didn't encounter when using the one generated by Eclipse:</p>
  
  <ul>
  <li><p>If I tried extracting the dependent JARs directly into my runnable JAR, I would get <a href="https://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar">Java security exceptions about invalid signature files</a> as the RSA/SF manifest files from my dependent JARs were getting extracted.</p></li>
  <li><p>If I tried to embed the dependent JARs within my generated JAR file rather than extracting the class files from them, I encountered "class not found" exceptions.</p></li>
  </ul>
  
  <p>To understand what was happening, I tried generating the JAR file using Eclipse as I'd done previously, which worked great. The difference seemed to be that IDEA was packing in a manifest file stored in my project tree like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Manifest-Version: 1.0
  Class-Path: .
  Main-Class: com.&lt;company&gt;.main.Main
  </code></pre>
  
  <p>In contrast, Eclipse was generating the manifest file during the export process, which looked like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Manifest-Version: 1.0
  Class-Path: .
  Main-Class: com.&lt;company&gt;.main.Main
  
  Name: com/jgoodies/forms/layout/FormLayout$LayoutInfo.class
  SHA1-Digest: J6yu1IuQZO0rgeF7Enl4p7u4ykU=
  
  Name: com/jgoodies/forms/builder/ButtonBarBuilder.class
  SHA1-Digest: 7ApcSFXKq2rw8IRkIl+R7y2rzIA=
  
  Name: com/jgoodies/forms/layout/FormLayout$ComponentSizeCache.class
  SHA1-Digest: cUMTPR0lwBEeQVUd3tsCFq6cMhA=
  
  Name: com/jgoodies/forms/util/Utilities.class
  SHA1-Digest: UbvvkJcHLyNbduyo07Hr2bSz06E=
  
  ...
  </code></pre>
  
  <p>It also excluded the RSA/SF files from the signed dependent JARs so that I didn't get any security exceptions when running the generated JAR.</p>
  
  <p>My question is: is it possible to get IDEA to generate a manifest file similarly to how Eclipse does?</p>