无法从intellij下载/安装Scala SDK

时间:2018-07-18 18:17:01

标签: scala intellij-idea

我在intellij中创建了一个maven项目,并尝试下载scala SDK。我收到以下错误。如果您遇到以下相同的问题,请提供帮助。

  

获取org.fusesource.jansi jansi 1.11 ...

     

::问题摘要:: ::::找不到警告模块:   org.fusesource.jansi#jansi; 1.11   ====本地:已尝试

     

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

     

-工件org.fusesource.jansi#jansi; 1.11!jansi.jar:

     

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

     

==== local-preloaded-ivy:已尝试

     

文件:/ C:/Users/userx/.sbt/preloaded/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

     

====本地预加载:已尝试

     

文件:/ C:/Users/userx/.sbt/preloaded/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

     

-工件org.fusesource.jansi#jansi; 1.11!jansi.jar:

     

文件:/ C:/Users/userx/.sbt/preloaded/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

     

==== Maven Central:已尝试

     

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

     

-工件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:已尝试

     

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

     

-工件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快照:已尝试

     

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

     

-工件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:尝试

     

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

     

==== sbt-ivy-快照:已尝试

     

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

     

:::::::::::::::::::::::::::::::::::::::::::::::: < / p>      

::无法解决的依赖::

     

:::::::::::::::::::::::::::::::::::::::::::::::: < / p>      

:: org.fusesource.jansi#jansi; 1.11:找不到

     

:::::::::::::::::::::::::::::::::::::::::::::::: < / p>      

::::错误服务器访问错误:收到致命警报:   protocol_version   url = https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

     

服务器访问错误:收到致命警报:protocol_version   url = https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar   服务器访问错误:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法执行   查找到请求目标的有效认证路径   url = https://repo.scala-sbt.org/scalasbt/maven-releases/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

     

服务器访问错误:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法执行   查找到请求目标的有效认证路径   url = https://repo.scala-sbt.org/scalasbt/maven-releases/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

     

服务器访问错误:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法执行   查找到请求目标的有效认证路径   url = https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom

     

服务器访问错误:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法执行   查找到请求目标的有效认证路径   url = https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar

     

服务器访问错误:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法执行   查找到请求目标的有效认证路径   url = https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

     

服务器访问错误:sun.security.validator.ValidatorException:PKIX   路径构建失败:   sun.security.provider.certpath.SunCertPathBuilderException:无法执行   查找到请求目标的有效认证路径   url = https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml

     

::将详细信息或详细消息级别用于更多未解决的细节   依赖项:org.fusesource.jansi#jansi; 1.11:找不到错误   sbt执行:检索所需的库时出错(请参阅   C:\ Users \ userx.sbt \ boot \ update.log以获得完整日志)错误:无法   检索jansi 1.11

我的系统版本:

System : windows 7
IntelliJ : 2017.3.5
Maven : 3.2.2
Java : 1.7

我如何下载图片: enter image description here

1 个答案:

答案 0 :(得分:1)

您是否碰巧落后于公司代理?

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

enter image description here