未解决的依赖:org.scala-sbt#sbt; 0.13:运行sbt 0.13时找不到?

时间:2013-11-06 05:56:04

标签: scala sbt

我有一个由几个组成的Scala项目。我决定开始使用sbt 0.13。这是~/sbt/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/

但我仍然收到错误:

Getting org.scala-sbt sbt 0.13 ...

:: problems summary ::
:::: WARNINGS
        module not found: org.scala-sbt#sbt;0.13

    ==== local: tried

      /home/alex/.ivy2/local/org.scala-sbt/sbt/0.13/ivys/ivy.xml

    ==== sbt-releases-repo: tried

      http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13/ivys/ivy.xml

    ==== sbt-plugins-repo: tried

      http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.13/ivys/ivy.xml

    ==== maven-central: tried

      http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13/sbt-0.13.pom

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.scala-sbt#sbt;0.13: not found

        ::::::::::::::::::::::::::::::::::::::::::::::



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

如果我删除此文件,则错误仍然存​​在。

4 个答案:

答案 0 :(得分:7)

尝试使用0.13.1

将以下内容放入project/build.properties

sbt.version=0.13.1

您可能还需要0.13 sbt启动器。见sbt Getting-Started - Setup

答案 1 :(得分:2)

首次在Ubuntu上安装openjdk-9-jdk然后再安装openjdk-8-jdk时遇到了同样的问题。

我最终卸载bin/my_module.py rm -rf/etc/ssl/certs/java,重新安装/etc/java-*并正在运行openjdk-8-jdk,并为我修复了这些内容。

答案 2 :(得分:1)

看起来您遇到版本不匹配问题。

如果您修改了project/build.properties以包含sbt.version=0.13.0,则可能意味着您使用了错误的启动器。

尝试运行

sbt sbt-version

并检查版本是否与project/build.properties中的sbt版本匹配。

答案 3 :(得分:0)

仅两个步骤

  1. 使用以下命令更新证书

    A
  2. 输入

    $ update-ca-certificates -f
    

如果连接到Internet,它将获取必需的文件。