Scala sbt 添加国内镜像

sbt运行时经常需要下载大量的jar包,默认连接到maven官网,速度通常比较慢。

在`~/.sbt/`下添加一个`repositories`文件,里面内容如下:

 

[root@ooccpp scala]# cat ~/.sbt/repositories 
[repositories]
local
nexus-aliyun:http://maven.aliyun.com/nexus/content/groups/public
nexus-aliyun-ivy:http://maven.aliyun.com/nexus/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

 

posted @ 2017-10-14 23:21  chenzechao  阅读(473)  评论(0编辑  收藏  举报