SBT项目构建过慢/卡在Getting解决办法

22
Jan

SBT项目构建过慢/卡在Getting解决办法

找了找网上的镜像 发现现在阿里云和bintray的都挺好用

步骤:
window:C:\Users\用户目录.sbt\

linux:~/.sbt/
建立repositories文件(不要后缀名)
里面输入

[repositories]
#local
public: http://maven.aliyun.com/nexus/content/groups/public/
typesafe:http://dl.bintray.com/typesafe/ivy-releases/ , [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
sonatype-oss-releases

sonatype-oss-snapshots

保存,再重新构建即可,亲测下载挺快的

添加新评论