idea-spark-sbt 打包jar

1、打开idea下的terminal窗口

2、只打包部分项目

sbt insight-import/clean  insight-import/assembly

这表示只打包主目录下的insight-import项目 ,先清理(clean)再打包(assembly)不能用package,这个不会打包jar

3、打包完的目录在该项目文件夹下

insight-batch-import argetscala-2.10insight-batch-import-1.0.jar

原文地址:https://www.cnblogs.com/LazyJoJo/p/7427943.html