转自:http://dblab.xmu.edu.cn/blog/maven-network-problem/
cd ~/.sbt/launchers/0.13.9
unzip -q ./sbt-launch.jar
修改
vi sbt/sbt.boot.properties
增加一个oschina库地址:
[repositories]
local
oschina: http://maven.oschina.net/content/groups/public/
jcenter: http://jcenter.bintray.com/
typesafe-ivy-releases: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
maven-central
重新打包
rm ./sbt-launch.jar # 删除旧的
jar -cfM ./sbt-launch.jar . # 重新打包
ls | grep -v "sbt-launch.jar" | xargs rm -r # 解压后的文件已无用,删除