Create Jar from Modules Dialog
Specify the settings for your Java archive (JAR).
The module that you want to package.
The fully qualified name of your main application class, the one with the
JAR files from libraries
The way the JAR files from the module libraries are processed:
Directory for META-INF/MANIFEST.MF
The path to the directory in which META-INF/MANIFEST.MF is generated.
Include the module's compiled test classes.
Refer to Packaging the application in a JAR for an example of how to create and build a JAR artifact.