Scala sbt 添加國內鏡像
阿新 • • 發佈:2017-10-15
public releases yun pos release blog ext mod 速度
sbt運行時經常需要下載大量的jar包,默認連接到maven官網,速度通常比較慢。
在`~/.sbt/`下添加一個`repositories`文件,裏面內容如下:
[[email protected] 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
Scala sbt 添加國內鏡像