IntelliJ IDEA 2018.3 Help

Create Jar from Modules Dialog

File | Project Structure | Artifacts - icons general add svg - JAR - From modules with dependencies

Specify the settings for your Java archive (JAR).




The module to be packaged.

Main class

The fully qualified name of your main application class, the one with a main() method.

JAR files from libraries

The way the JAR files from the module libraries are processed:
  • extract to the target JAR. The JAR contents are decompressed and then packaged together with the module output in a single JAR.

  • copy to the output directory and link via manifest. The JAR files are copied to the artifact output directory as is. The references to the JARs are added to the Class-Path header field of the MANIFEST.MF file that is packaged in the same JAR as the module output.


The path to the directory in which META-INF/MANIFEST.MF is generated.

Include tests

Include the module's compiled test classes.

Last modified: 7 December 2018

See Also