Неработающий URL для установки плагинов Scala
Я пытаюсь установить Rocket-Chip, а Chisel3 - это субмодуль в этом git-репо. Я следовал инструкциям в Chisel3 git repo
Я получаю следующую ошибку при использовании
sbt compile
Проект / plugins.sbt репозитория chisel3 имеет
resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)
URL не работает. Я заменил его на 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)]}::
Можете ли вы дать мне знать, что мне здесь не хватает?
1 ответ
[Я пытаюсь скомпилировать долото3 на MacOS High Sierra. Sbt был установлен с использованием brew.]
Кажется, что даже 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)]}} [[error] 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-plugin-Release: невозможно получить ресурс для 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: невозможно найти действительный путь сертификации для запрошенной целевой [error] typesafe-ivy-Release: невозможно получить ресурс для 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-plugin-Release: невозможно получить ресурс для 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 и, наконец, показывает "Запрошенный путь не найден".
Основываясь на другом потоке, я получил эту "ошибку говорит"javax.net.ssl.SSLException: java.lang.RuntimeException: непредвиденная ошибка: java.security.InvalidAlgorithmParameterException: параметр trustAnchors должен быть не пустым ", что является известной проблемой в Linux. См. Различные опубликованные обходные пути. Ошибка trustanchors"