參考: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