感动到哭的SBT下载

在centos上搭建spark开发环境。使用IntelliJ IDEA做scala开发,需要配置SBT。一直卡在从maven上下载jar包的过程中,还几次都下失败了。试过vpn也没有用。

还好偶然看到阿里云maven仓库,才终于下成功了。

修改文件位置:

~/.sbt/repositories      没有这个repositories这个文件就新建一个

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

飞一般的速度就下载ok。感激涕零,终于可以继续spark之路了。

posted @ 2017-11-21 17:10  阳光下的me  阅读(209)  评论(1编辑  收藏  举报