首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试编译play模板项目时未解析的依赖项: sbt-plugin;2.7.0

尝试编译play模板项目时未解析的依赖项: sbt-plugin;2.7.0
EN

Stack Overflow用户
提问于 2019-03-02 08:38:11
回答 1查看 972关注 0票数 4

按照play网站"sbt new playframework/play-scala-seed.g8“的指导创建了一个新的play模板项目

尝试编译/运行该项目时,我得到了以下结果:

代码语言:javascript
复制
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.play#sbt-plugin;2.7.0: Resolution failed several times for dependency: com.typesafe.play#sbt-plugin;2.7.0 {compile=[default(compile)]}:: 
[warn]  typesafe-ivy-releases: unable to get resource for com.typesafe.play#sbt-plugin;2.7.0: res=https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.12/sbt_1.0/2.7.0/ivys/ivy.xml: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[warn]  sbt-plugin-releases: unable to get resource for com.typesafe.play#sbt-plugin;2.7.0: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.12/sbt_1.0/2.7.0/ivys/ivy.xml: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.typesafe.play:sbt-plugin:2.7.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]      com.typesafe.play:sbt-plugin:2.7.0 (scalaVersion=2.12, sbtVersion=1.0) (/Users/ramin/Desktop/playground/project/plugins.sbt#L1-2)
[warn]        +- default:playground-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)

我的Scala版本是2.12.4,而且我确实安装了SBT1.0,所以我有点搞不懂为什么会发生这种情况。有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2019-03-05 06:57:01

https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000094584-IDEA-Ultimate-2016-3-4-throwing-unable-to-find-valid-certification-path-to-requested-target-when-trying-to-refresh-gradle?page=1#community_comment_115000405564

如果您遵循此处的响应,然后使用repo.scala-sbt.org代替google.com部分

如下所示:

echo -n | openssl s_client -connect repo.scala-sbt.org:443 | sed -ne‘/-开始证书-/,/-结束证书-/p’> /tmp/scala.cer

按照链接中的其余说明进行操作,它应该可以工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54954109

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档