升级至0.13.9;现在我不能发射了

  • 本文关键字:不能 发射 scala sbt
  • 更新时间 :
  • 英文 :


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

scala-library
scala-compilre
scala-reflect 

均因sha1与计算值不同。是否有绕过sha1验证的方法?仅供参考。在"build.sbt"中设置"checksums in update := Nil"不能解决问题。我甚至试着把~/.ivy/ivysettings.xml中的<property name="ivy.checksums" value=""/>仍然失效

下面是控制台输出:

D:Temptest>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:Usersak.ivy2localorg.scala-langscala-library2.10.5ivysivy.xml
          -- artifact org.scala-lang#scala-library;2.10.5!scala-library.jar:
          C:Usersak.ivy2localorg.scala-langscala-library2.10.5jarsscala-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:Usersak.ivy2localorg.scala-langscala-compiler2.10.5ivysivy.xml
          -- artifact org.scala-lang#scala-compiler;2.10.5!scala-compiler.jar:
          C:Usersak.ivy2localorg.scala-langscala-compiler2.10.5jarsscala-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:Usersak.ivy2localorg.scala-langscala-reflect2.10.5ivysivy.xml
          -- artifact org.scala-lang#scala-reflect;2.10.5!scala-reflect.jar:
          C:Usersak.ivy2localorg.scala-langscala-reflect2.10.5jarsscala-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:Usersak.sbtbootupdate.log for complete log)
Error: Could not retrieve sbt 0.13.9

原来是我们的Nexus代理存储库的排序问题。oss.sonatype.org maven repo在maven Central repo之前出现了问题。删除oss.sonatype.org maven库解决了这个问题。

最新更新