首页 > 解决方案 > 用于安装 scala 插件的 URL 损坏

问题描述

我正在尝试安装rocket-chip,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)]}::

你能告诉我我在这里缺少什么吗?

标签: scalachisel

解决方案


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


推荐阅读