执行以下命令
cd ~ mkdir .sbt cd .sbt vim repositories #创建repositories文件
文件里填写
[repositories] local huaweicloud-maven: https://repo.huaweicloud.com/repository/maven/ maven-central: https://repo1.maven.org/maven2/ sbt-plugin-repo: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
再修改sbt配置文件,打开/usr/local/sbt/conf/sbtopts 文件
vim /usr/local/sbt/conf/sbtopts
在末尾新增一行,内容如下:
-Dsbt.override.build.repos=true
再次执行
cd /usr/local/sbt ./sbt sbtVersion
就是速度非常慢,要等很长时间。
标签:sbt,卡住,cd,maven,usr,https,Ubuntu,local From: https://www.cnblogs.com/liucaizhi/p/17873405.html