title: IntelliJ Maven "Error: Invalid or corrupt jarfile"
body: <p>I'm using <a href="https://www.jetbrains.com/idea/" rel="noreferrer">IntelliJ</a> to develop <code>Java</code> Desktop applications. On my project, I added framework support for <a href="https://maven.apache.org/" rel="noreferrer"><code>Maven</code></a> and added a dependency to the <code>pom.xml</code> file. I also added a build artifact like described <a href="https://stackoverflow.com/questions/32639682/defining-multiple-artifacts-with-same-project-but-different-main-classes">here</a> (I would also appreciate if this question gets answered).
  Now that my project has <code>Maven</code> support, the generated <code>JAR</code> file no longer works. When I try to launch it, it displays the error <code>Error: Invalid or corrupt jarfile MyProject.jar</code>. When I open the <code>JAR</code> file using <a href="http://www.rarlab.com/download.htm" rel="noreferrer"><code>WinRAR</code></a>, there is no <code>MANIFEST.MF</code> file included, only folders and <code>CLASS</code> files. What happened to my <code>Maven</code> dependencies as well? Why does <code>IntelliJ</code> not properly build my <code>Maven</code> project into an executable <code>JAR</code> file via its artifacts?</p>