SBT设置全局Maven库的位置

进入sbt本地目录~/.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](-[classifier]).[ext], bootOnly  
sonatype-oss-releases  
maven-central  
sonatype-oss-snapshots  

这样就可以避免sbt每次下载maven的时候都去http://repo1.maven.org/maven2/下载,那个慢啊!