使用 Idea 打 scala程序的 jar 包

image

Artifact ——》+  ——》JAR ——》From modules with dependencies

image

选择 Module,选择主函数,OK——》OK

image

勾选Include in project build,OK

image

Build ——》 Builde Artifact

image

在弹出的信息中选Build

然后在工程中就能见到打好的 jar 包了。

out 目录下。

image

就 OK 了。

原文地址:https://www.cnblogs.com/daimajun/p/7224079.html