当前位置: 首页 > 知识库问答 >
问题:

升级为sbt 0.13.9;现在我无法启动sbt

胡飞舟
2023-03-14

我将sbt从版本0.13.8升级到了0.13.9。我们有Nexus代理许多存储库。现在,当我发出'sbt'命令时-我会得到未解析的依赖项

scala-library
scala-compilre
scala-reflect 

全部原因是sha1与计算值不同。有没有办法绕过sha1验证?通知一下。在build.sbt中的update:=nil中设置校验和不能解决此问题。我甚至尝试将 放入~/.ivy/ivysettings.xml仍然失败。

D:\Temp\test>sbt -v update
Getting org.scala-sbt sbt 0.13.9 ...

:: problems summary ::
:::: WARNINGS
        problem while downloading module descriptor: http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-library/2.10.5/scala-library-2.10.5.pom: invalid sha1: expected=c39e31e37ce77d8d5fb8e8c640222275815d36f2 computed=4e8b721680f2defb491fe90447302658d464d5c
0 (351ms)

                module not found: org.scala-lang#scala-library;2.10.5

        ==== local: tried

          C:\Users\ak\.ivy2\local\org.scala-lang\scala-library\2.10.5\ivys\ivy.xml

          -- artifact org.scala-lang#scala-library;2.10.5!scala-library.jar:

          C:\Users\ak\.ivy2\local\org.scala-lang\scala-library\2.10.5\jars\scala-library.jar

        ==== my-ivy-proxy-releases: tried

          http://nexusserver:8081/nexus/content/groups/ivy-releases/org.scala-lang/scala-library/2.10.5/ivys/ivy.xml

        ==== my-maven-proxy-releases: tried

          http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-library/2.10.5/scala-library-2.10.5.pom

        problem while downloading module descriptor: http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-compiler/2.10.5/scala-compiler-2.10.5.pom: invalid sha1: expected=9a85822af1f9ea46b49dfdfa99eafc0bd819abaf computed=c3e0b6cf2f45a5a7cb052ef9e00f8fdac55e7
1b7 (69ms)

                module not found: org.scala-lang#scala-compiler;2.10.5

        ==== local: tried

          C:\Users\ak\.ivy2\local\org.scala-lang\scala-compiler\2.10.5\ivys\ivy.xml

          -- artifact org.scala-lang#scala-compiler;2.10.5!scala-compiler.jar:

          C:\Users\ak\.ivy2\local\org.scala-lang\scala-compiler\2.10.5\jars\scala-compiler.jar

        ==== my-ivy-proxy-releases: tried

          http://nexusserver:8081/nexus/content/groups/ivy-releases/org.scala-lang/scala-compiler/2.10.5/ivys/ivy.xml

        ==== my-maven-proxy-releases: tried

          http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-compiler/2.10.5/scala-compiler-2.10.5.pom

        problem while downloading module descriptor: http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-reflect/2.10.5/scala-reflect-2.10.5.pom: invalid sha1: expected=3a6fa11041ac0c8b4d5fcf9d4f1372ba8c0b7216 computed=30f1f646114a79eeefb254ead190f045c460564
9 (67ms)

                module not found: org.scala-lang#scala-reflect;2.10.5

        ==== local: tried

          C:\Users\ak\.ivy2\local\org.scala-lang\scala-reflect\2.10.5\ivys\ivy.xml

          -- artifact org.scala-lang#scala-reflect;2.10.5!scala-reflect.jar:

          C:\Users\ak\.ivy2\local\org.scala-lang\scala-reflect\2.10.5\jars\scala-reflect.jar

        ==== my-ivy-proxy-releases: tried

          http://nexusserver:8081/nexus/content/groups/ivy-releases/org.scala-lang/scala-reflect/2.10.5/ivys/ivy.xml

        ==== my-maven-proxy-releases: tried

          http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-reflect/2.10.5/scala-reflect-2.10.5.pom

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

                ::          UNRESOLVED DEPENDENCIES         ::

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

                :: org.scala-lang#scala-library;2.10.5: not found

                :: org.scala-lang#scala-compiler;2.10.5: not found

                :: org.scala-lang#scala-reflect;2.10.5: not found

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



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-lang#scala-library;2.10.5: not found
unresolved dependency: org.scala-lang#scala-compiler;2.10.5: not found
unresolved dependency: org.scala-lang#scala-reflect;2.10.5: not found
Error during sbt execution: Error retrieving required libraries
  (see C:\Users\ak\.sbt\boot\update.log for complete log)
Error: Could not retrieve sbt 0.13.9

共有1个答案

彭阳荣
2023-03-14

结果是我们的Nexus代理存储库的排序问题。Oss.sonatype.org maven repo被放在maven Central repo之前时导致了一个问题。删除oss.sonatype.org maven存储库解决了这个问题。

 类似资料:
  • 我在周末将笔记本电脑从Kubuntu 12.04升级到12.10,一切看起来都很好,直到我重新开始工作。 笔记本电脑是一台通过php5 fpm运行Nginx和php的webdev机器,但现在看来php5 fpm不会启动。当我运行/etc/init时。d/php5 fpm重启我刚收到一条消息说失败。我在syslog或/var/log/fpm php中没有收到任何消息。www.log提供有关正在发生的

  • 我从Windows7升级到Windows10。在Bitnami堆栈中,MySQL正在运行,但我无法在Windows启动时启动Apache作为服务。我尝试过使用管理器工具。我尝试了很多方法,包括:将侦听端口和服务器名更改为8888,之后更改为8118,关闭Windows Defender,查看Apache的日志目录和错误目录中的文件(未找到任何条目),按下启动Bitnami Webstack按钮(只

  • 我在Windows 7虚拟机上安装了XAMPP。我的旧PHP版本是7.0.9,Apache 2.4 我需要将PHP版本升级到7.1.x,我开始阅读如何最好地做到这一点。最后,我选择了一个简单的计划: > 停止Apache服务 从PHP官方网站下载了新的PHP版本。对于PHP 7,列出了7.1.17版本。我下载了线程安全版本,因为我的Apache启用了线程安全。 我将下载的存档文件的内容提取到一个文

  • 我已经使用ELS 1.4.1在Windows 7版本x64上成功安装了Elasticsearch。升级到Kibana 4 RTM后,需要ELS 1.4.4。 为了执行升级,我执行了以下步骤: 下载ELS 1.4.4 启动服务后,它会在几秒钟内停止。记录如下: (请注意,这是为了开发目的) 如果从命令提示符下运行elasticsearch,会出现以下错误:

  • 问题内容: 我想升级的到。我使用以下命令: 而且我得到了各种各样的错误,可以在此处的pip.log文件中看到,但很遗憾,我对Python的了解还不够深,无法理解问题所在。任何帮助将不胜感激。 问题答案: 错误消息都表示相同:您的系统上缺少BLAS(基本线性代数子例程),或者scipy无法找到它。在ubuntu中从源安装软件包时,由于您实际上是在尝试使用pip进行操作,因此确保依赖关系到位的最简单方

  • 堆栈跟踪如下: 结果StackTrace:在OpenQa.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)在OpenQa.Selenium.Remote.Remote.DriverServiceCommandExecutor.Execute(命令commandToExecute)在Ope