sbt构建工程

1、idea
安装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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值