- Terminal
在~/.sbt下面创建repositories文件,内容如下:
[repositories]
local
osc: http://maven.aliyun.com/nexus/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/artifact.[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots
打开终端,进入工程目录,有build.sbt那个
执行sbt -Dsbt.override.build.repos=true
执行console - IDEA
在最开始的页面, 就是没打开任何工程的地方,右下角点Configure
点Preference 左上角搜sbt
点开sbt,VM parameter那添加-Dsbt.override.build.repos=true
Launcher那选择custom,添加自己的sbt,我的目录是/usr/local/Cellar/sbt/0.13.13/libexec/sbt-launch.jar
如果版本不一致可修改工程里面的build.properties
解决idea的sbt下载资源过慢的情况
猜你喜欢
转载自blog.csdn.net/xiligey1/article/details/81204547
今日推荐
周排行