How can I build JAR files from IntelliJ IDEA properly?
I tried and It worked. To build a JAR file from a module; On the main menu, choose Build | Build Artifact. From the drop-down list, select the desired artifact of the type JAR. The list shows all the artifacts