SBT下載特別慢的問題解決
阿新 • • 發佈:2019-02-02
sbt執行時經常需要下載大量的jar包,預設連線到maven官網,速度通常比較慢。
在`~/.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
本文轉自網際網路;