用于安装scala插件的URL损坏

时间:2018-06-16 17:45:07

标签: scala chisel

我正在尝试安装火箭芯片,而chisel3是git repo中的一个子模块。我按照步骤进行操作 Chisel3 git repo

使用

时出现以下错误
sbt compile

chisel3 repo的project / plugins.sbt有

resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)

网址已损坏。我用https://dl.bintray.com/sbt/sbt-plugin-releases替换了它 但我知道我得到了这个

[info] Loading settings from plugins.sbt ... [info] Loading project definition from /home/sathya/riscv/rocket-chip/chisel3/project [info] Updating ProjectRef(uri("file:/home/sathya/riscv/rocket-chip/chisel3/project/"), "chisel3-build")... [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.scalastyle#scalastyle-sbt-plugin;1.0.0: Resolution failed several times for dependency: org.scalastyle#scalastyle-sbt-plugin;1.0.0 {compile=[default(compile)]}:: [warn] typesafe-ivy-releases: unable to get resource for org.scalastyle#scalastyle-sbt-plugin;1.0.0: res=https://repo.typesafe.com/typesafe/ivy-releases/org.scalastyle/scalastyle-sbt-plugin/scala_2.12/sbt_1.0/1.0.0/ivys/ivy.xml: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty [warn] sbt-plugin-releases: unable to get resource for org.scalastyle#scalastyle-sbt-plugin;1.0.0: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalastyle/scalastyle-sbt-plugin/scala_2.12/sbt_1.0/1.0.0/ivys/ivy.xml: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty [warn] public: unable to get resource for org/scalastyle#scalastyle-sbt-plugin;1.0.0: res=https://repo1.maven.org/maven2/org/scalastyle/scalastyle-sbt-plugin_2.12_1.0/1.0.0/scalastyle-sbt-plugin-1.0.0.pom: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty [warn] sbt-plugin-releases: unable to get resource for org.scalastyle#scalastyle-sbt-plugin;1.0.0: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scalastyle/scalastyle-sbt-plugin/scala_2.12/sbt_1.0/1.0.0/ivys/ivy.xml: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty [warn] :: org.scoverage#sbt-scoverage;1.5.1: Resolution failed several times for dependency: org.scoverage#sbt-scoverage;1.5.1 {compile=[default(compile)]}::
你能告诉我这里缺少的东西吗?

2 个答案:

答案 0 :(得分:0)

基于另一个线程我得到了这个 " 错误说" javax.net.ssl.SSLException:java.lang.RuntimeException:意外错误:java.security.InvalidAlgorithmParameterException:trustAnchors参数必须为非空",这是Linux上的已知问题。请参阅发布的各种变通方法。 trustanchors error "

答案 1 :(得分:0)

[我正在尝试在MacOS High Sierra上编译chisel3。使用brew安装Sbt。]

似乎https://dl.bintray.com/sbt/sbt-plugin-releases也坏了。我做了同样的事情,但是得到了一个不同的错误,例如:

[错误]未解决的依赖关系:org.webjars#webjars-locator-core; 0.32:解析因依赖关系多次失败:org.webjars#webjars-locator-core; 0.32 {compile = [default(compile)]}: : [错误] typesafe-ivy-releases:无法获取org.webjars#webjars-locator-core的资源; 0.32:res = {https://repo.typesafe.com/typesafe/ivy-releases/org.webjars/webjars-locator-core/0.32/ivys/ivy.xml:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径 [错误] sbt插件发行版:无法获取org.webjars#webjars-locator-core的资源; 0.32:res = {https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.webjars/webjars-locator-core/0.32/ivys/ivy.xml:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径 [错误] typesafe-ivy-releases:无法获取org.webjars#webjars-locator-core的资源; 0.32:res = {https://repo.typesafe.com/typesafe/ivy-releases/org.webjars/webjars-locator-core/0.32/jars/webjars-locator-core.jar:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径 [错误] sbt插件发行版:无法获取org.webjars#webjars-locator-core的资源; 0.32:res = {https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.webjars/webjars-locator-core/0.32/ivys/ivy.xml:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径

在浏览器中访问https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.webjars/webjars-locator-core/0.32/ivys/ivy.xml,它重定向到https://dl.bintray.com/sbt/sbt-plugin-releases/org.webjars/webjars-locator-core/0.32/ivys/ivy.xml,最后显示“找不到所请求的路径。”