每次sbt update的时候,都很慢,上火。原因是国内访问国外仓库,不给力。
改下repo仓库的设置就好了:
找到.sbt文件夹,一般在Administrator下,然后在.sbt里新建一个repositories文件,添加内容:
[repositories]
local
osc: http://maven.oschina.net/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/artifact.[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots