參考
網(wǎng)上找了許多,都是oschina的源,阿里的源也試了酵熙,都很慢。最終修改源列表如下揖膜,半分鐘就好了。具體是哪一行發(fā)生了作用,就不清楚了。
~/.sbt$ cat repositories
[repositories]
local
aliyun-nexus: http://maven.aliyun.com/nexus/content/groups/public/
ibiblio-maven: http://maven.ibiblio.org/maven2/
typesafe-ivy: https://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
uk-repository: http://uk.maven.org/maven2/
jboss-repository: http://repository.jboss.org/nexus/content/groups/public/
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$ sbt
[info] Set current project to root--sbt (in build file:/home/bit/.sbt/)
>
==============
20170115更新
在sbt編譯spark的時(shí)候又報(bào)錯(cuò)了,連不上服務(wù)器吃沪。精簡一下文件汤善,不是越多越好,直接定位到阿里云提供的源即可票彪。
$ dpkg -L sbt
/usr/share/sbt-launcher-packaging/conf/sbtopts
/usr/share/sbt-launcher-packaging/conf/sbtconfig.txt
這兩個(gè)文件增加一行红淡,讓源生效:
-Dsbt.override.build.repos=true
$ cat repositories
[repositories]
local
aliyun-nexus: http://maven.aliyun.com/nexus/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