参考:https://segmentfault.com/a/1190000002474507
下载:https://dl.bintray.com/sbt/native-packages/sbt/0.13.11/sbt-0.13.11.tgz
解压到指定目录,并修改sbt/conf/sbtconfig.txt,添加如下配置
#指定sbt 依赖的一些基础资源文件的存储路径
-Dsbt.boot.directory=D:\sbt-0.13.11\sbt\base
#指定的应用依赖的资源文件的路径
-Dsbt.ivy.home=D:\sbt-0.13.11\sbt\ivy2
-Dsbt.repository.config=D:\sbt-0.13.11\sbt\conf/repo.properties
将sbt/bin目录添加到path目录
创建repo.properties文件
[repositories]
#本地源
local
#国内源,osChina
osc: http://maven.oschina.net/content/groups/public/
#兼容 Ivy 路径布局
oschina-ivy:http://maven.oschina.net/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
#添加国外源备用
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots