sbt在IntelliJ IDEA里面大多情况下还是比较慢的,有两种解决办法:
1.提前下载放到缓存库里
2.更改库为阿里源
1.提前下载放到缓存库里
sbt安装后会在用户路径下看到两个文件夹。.ivy2、.sbt
下载的库,可以放到
C:\Users\aboutyun\.ivy2\cache里面
2.更改库
有的时候我们下载的非常慢,另外一种方法更改库。Linux下是在~/.sbt下修改。
window下C:\Users\aboutyun\.sbt修改repositories
库内容
[repositories] local Nexus aliyun : http://maven.aliyun.com/nexus/content/groups/public/ Nexus osc : http://maven.oschina.net/content/groups/public/ Nexus osc thirdparty : http://maven.oschina.net/content/repositories/thirdparty/ maven-central typesafe-ivy-releases: https://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly sbt-ivy-snapshots: https://repo.scala-sbt.org/scalasbt/ivy-snapshots/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly [boot] directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/} [ivy] ivy-home: ${sbt.ivy.home-${user.home}/.ivy2/} checksums: ${sbt.checksums-sha1,md5} override-build-repos: ${sbt.override.build.repos-false} repository-config: ${sbt.repository.config-${sbt.global.base-${user.home}/.sbt}/repositories}
参考
windows+idea+sbt 如何使用国内的镜像
http://www.aboutyun.com/forum.php?mod=viewthread&tid=22376