如图上报错,解决办法:
先找到conf文件夹下面的sbtconfig文件,在里面加上下面的设置,我安装的路径是D:/sbt,这个按照你自己的安装路径来
#后期添加
-Dsbt.boot.directory=D:/sbt/data/.sbt/boot
-Dsbt.global.base=D:/sbt/data/.sbt
-Dsbt.ivy.home=D:/sbt/data/.ivy2
-Dsbt.repository.config=D:/sbt/conf/repo.properties
-Dsbt.repository.secure=false
添加完成后,再新建一个文件repo.properties,将以下设置添加进去,注意格式要正确;每行前面一个空格,然后正常弄,就会去下载东西,下载完了之后就可以用了,我的是这样弄好的
[repositories]
local aliyun: 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](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots