【Intellij】导出 jar 包

需要在 Intellij 导出 jar 包,一时不知道该怎么做,后来总算找到了方法,步骤如下:

1. File → Project Structure... → Artifacts → + → jar → From modules with .... → 选择一个要执行的main方法

2. 勾选 extract to the target JAR

3. 选择 manifest 的位置:d:ideamyprojectsrc

4. 勾选 build on make

5. build -> build artifacts... -> build

6. D:ideamyprojectoutartifacts 寻找 jar 文件

参考链接:

http://my.oschina.net/scipio/blog/287634?p=1

http://blog.sina.com.cn/s/blog_5d2054d90102vzru.html

原文地址:https://www.cnblogs.com/jaxer/p/5836582.html