How to build jars from IntelliJ properly?

前端 未结 20 2523
盖世英雄少女心
盖世英雄少女心 2020-11-22 01:14

I have a project that contains a single module, and some dependencies. I\'d like to create a jar, in a separate directory, that contains the compiled module. In addition, I\

20条回答
  •  星月不相逢
    2020-11-22 01:58

    Here is the official answer of IntelliJ IDEA 2018.3 Help. I tried and It worked.

    To build a JAR file from a module;

    1. On the main menu, choose Build | Build Artifact.

    2. From the drop-down list, select the desired artifact of the type JAR. The list shows all the artifacts configured for the current project. To have all the configured artifacts built, choose the Build all artifacts option.

提交回复
热议问题