安装sbt插件,然后后重启
2、在idea左下角,窗口图标,打开SBT Console,点击绿色按钮会安装相关的包
3、安装包的仓库地址为:C:\Users\wangqiao\.sbt\repositories文件
[repositories] local nexus: http://repos.laifeng.1verge.net/nexus/content/groups/public/ maven-local: file://~/.m2/repository osc: http://maven.oschina.net/content/groups/public/ typesafe-ivy-releases: https://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly community-plugins-ivy-releases: https://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext] maven-repo-caimi: http://repos.1verge.net/nexus/content/groups/public
安装需要一段时间
4、安装完成后 再点击绿色按钮
java -Dsbt.log.noformat=true -Djline.terminal=jline.UnsupportedTerminal -Xmx512M -XX:MaxPermSize=256M -jar C:\Users\wangqiao\.IntelliJIdea14\system\sbt\sbt-launch.jar
然后输入assembly命令 把依赖包引入
5、打包
package [info] Packaging D:\IDEA\idea_project_new\ddshow-antispam\target\scala-2.10\ddshow-antispam_2.10-1.0.jar ... [info] Done packaging. [success] Total time: 0 s, completed 2016-5-6 11:43:10
在D:\IDEA\idea_project_new\ddshow-antispam\target\scala-2.10目录下
ddshow-antispam-assembly-1.0.jar