错误如下所示:

// 上面的错误信息这里省略

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13.9: not found
Error during sbt execution: Error retrieving required libraries
  (see /root/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.9

我的解决方法如下:

sbt 安装的 https 的问题,  :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS_jar

上述截图的来源网址如下:

https://stackoverflow.com/questions/18505176/unresolved-dependency-sbt-0-13-0-after-update

如果你不想去看上述网页,请看我的操作步骤,修改sbt-launch.jar:

先执行如下指令:

mkdir ~/sbt # 创建一个sbt文件夹
    cd ~/sbt #进入该文件夹
    wget https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.9/sbt-launch.jar -O ./sbt-launch.jar      # 下载
    unzip -q ./sbt-launch.jar            # 解压
    sudo gedit ./sbt/sbt.boot.properties   #修改该这个文件

[repositories] 处修改为如下内容:

[repositories]
  local
  sbt-releases-repo: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  sbt-plugins-repo: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  maven-central: http://repo1.maven.org/maven2/

再执行如下指令:

cd .. #返回上一级
    rm ./sbt-launch.jar         # 删除旧的
    jar -cfM ./sbt-launch.jar .       # 重新打包
    ls | grep -v "sbt-launch.jar" | xargs rm -r    # 解压后的文件已无用,删除

sbt 文件中得到修改后的 sbt-launch.jar,替换你之前的sbt-launch.jar 就可以了。

sbt 安装的 https 的问题,  :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS_scala_02