专栏名称: About云
about云-为热爱云开发技术人员提供最全面的信息传播和服务平台
目录
相关文章推荐
求是网  ·  习近平同吉尔吉斯斯坦总统扎帕罗夫会谈 ·  3 天前  
财宝宝  ·  阅读理解。 ... ·  3 天前  
51好读  ›  专栏  ›  About云

spark开发环境详细教程2:window下sbt库的设置

About云  · 公众号  ·  · 2017-08-07 14:08

正文

问题导读

1.sbt在IntelliJ IDEA里面比较慢,该如何解决?
2.如何在window里面更改阿里源?
3.如何在Linux里更改源?



上一篇spark开发环境详细教程1:IntelliJ IDEA使用详细说明
http://www.aboutyun.com/forum.php?mod=viewthread&tid=22320



sbt在IntelliJ IDEA里面大多情况下还是比较慢的,有两种解决办法:
1.提前下载放到缓存库里
2.更改库为阿里源

1.提前下载放到缓存库里

sbt安装后会在用户路径下看到两个文件夹。.ivy2、.sbt



下载的库,可以放到

C:\Users\aboutyun\.ivy2\cache里面



2.更改库
有的时候我们下载的非常慢,另外一种方法更改库。Linux下是在~/.sbt下修改。
window下C:\Users\aboutyun\.sbt修改repositories



库内容

[Bash shell] 纯文本查看 复制代码

?

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
[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






请到「今天看啥」查看全文