gpt4 book ai didi

scala - IntelliJ : Cannot open SBT Project: jansi 1. 11 错误

转载 作者:行者123 更新时间:2023-12-04 13:45:09 24 4
gpt4 key购买 nike

最近开始使用大数据,我希望了解有关 Spark 和 Scala 的更多信息,以学习使用许多文件和 hdfs。在试验 IntelliJ(这是我推荐的)时,我安装了 IntelliJ 的最新更新以及 SBT 和 Scala 插件。

但是,我好像遇到了一个问题,当我在Scala中打开一个idea项目时,它没有任何问题,但是,如果我尝试打开一个sbt项目,我会遇到以下错误:

TL;DR 文件中没有名为 Jansi 1.11 的东西。

Error while importing sbt project:

Getting org.fusesource.jansi jansi 1.11 (this may take some time)...

:: problems summary ::
:::: WARNINGS
module not found: org.fusesource.jansi#jansi;1.11

==== local: tried

C:\Users\user_name\.ivy2\local\org.fusesource.jansi\jansi\1.11\ivys\ivy.xml

-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:

C:\Users\user_name\.ivy2\local\org.fusesource.jansi\jansi\1.11\jars\jansi.jar

==== local-preloaded-ivy: tried

file:/C:/Users/user_name/.sbt/preloaded/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

==== local-preloaded: tried

file:/C:/Users/user_name/.sbt/preloaded/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:

file:/C:/Users/user_name/.sbt/preloaded/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

==== Maven Central: tried

https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:

https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

==== sbt-maven-releases: tried

https://repo.scala-sbt.org/scalasbt/maven- releases/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:

https://repo.scala-sbt.org/scalasbt/maven- releases/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

==== sbt-maven-snapshots: tried

https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:

https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

==== typesafe-ivy-releases: tried

https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

==== sbt-ivy-snapshots: tried

https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: org.fusesource.jansi#jansi;1.11: not found

::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Error during sbt execution: Error retrieving required libraries
unresolved dependency: org.fusesource.jansi#jansi;1.11: not found
(see C:\Users\user_name\.sbt\boot\update.log for complete log)
Error: Could not retrieve jansi 1.11`

有没有办法来解决这个问题?我已经多次尝试重新安装。

最佳答案

我在遇到同样的问题后来到这里(在公司代理后面并收到相同的错误消息)。我尝试了多个(相关)线程中提到的所有建议,但最终通过直接在 IntelliJ 中设置 HTTP 代理来解决它。这是我的设置的样子(注意:在相应的框中指定您的网络用户名和密码):-

enter image description here

关于scala - IntelliJ : Cannot open SBT Project: jansi 1. 11 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50379479/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com