I upgraded sbt from version 0.13.8 to 0.13.9. We have Nexus proxying many repositories. Now, when I issue 'sbt' command - I get unresolved dependencies
我将sbt版本从0.13.8升级到0.13.9。我们有Nexus代理许多存储库。现在,当我发出“sbt”命令时,我得到了未解析的依赖项
scala-library
scala-compilre
scala-reflect
all due to sha1 different from the computed. Is there a way to bypass sha1 validation? FYI. setting checksums in update := Nil
in build.sbt
does not solve the problem. I even tried putting <property name="ivy.checksums" value=""/>
in ~/.ivy/ivysettings.xml
still fails.
都是由于sha1不同于计算出来的。是否有绕过sha1验证的方法?仅供参考。在build中设置checksum:= Nil。sbt并不能解决问题。我甚至试着输入
here is the console output:
这里是控制台输出:
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 个解决方案
#1
3
It turned out to be an ordering issue with our Nexus proxy repositories. oss.sonatype.org maven repo was causing an issue when it was placed ahead of the Maven Central repo. Removing oss.sonatype.org maven repository solved the problem.
我们的Nexus代理存储库出现了订购问题。.sonatype.org . maven repo在maven中心repo之前被放置时产生了问题。删除oss.sonatype.org maven存储库解决了这个问题。
#1
3
It turned out to be an ordering issue with our Nexus proxy repositories. oss.sonatype.org maven repo was causing an issue when it was placed ahead of the Maven Central repo. Removing oss.sonatype.org maven repository solved the problem.
我们的Nexus代理存储库出现了订购问题。.sonatype.org . maven repo在maven中心repo之前被放置时产生了问题。删除oss.sonatype.org maven存储库解决了这个问题。