昨天一切正常,但今天我执行sbt update
时我得到了:
[info] Resolving org.log4s#log4s_2.11;latest.release ...
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/org/log4s/log4s_2.11/maven-metadata.xml
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/org/log4s/log4s_2.11/
[warn] module not found: org.log4s#log4s_2.11;latest.release
[warn] ==== local: tried
[warn] /home/hkr/.ivy2/local/org.log4s/log4s_2.11/[revision]/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/log4s/log4s_2.11/[revision]/log4s_2.11-[revision].pom
[info] Resolving ch.qos.logback#logback-classic;latest.release ...
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/maven-metadata.xml
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/
对于我的所有依赖项,搜索我发现了一些可能是CA Java证书的答案,但我已经安装了它们。
答案 0 :(得分:3)
我有同样的问题,并且我将JDK从OpenJDK更改为OracleJDK。我从这里开始使用Fedora和SBT:http://www.scala-sbt.org/download.html
所以不需要升级Scala版本,特别是因为现在不是每个库都升级了。
答案 1 :(得分:1)
它最终正常运行,我必须将Scala
更新为版本2.12.1
并删除openjdk
(Gentoo中的Icedtea)并安装oracle-jdk
。