问题导读
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
|