未解决的依赖性:SBT-Plugin; 2.7.0试图编译播放模板项目时



按照Play网站的指南" SBT新PlayFramework/Play-scala-seed.g8"

创建了一个新的Play模板项目。

尝试编译/运行项目,我得到以下内容:

[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,我确实安装了SBT 1.0,因此对为什么会发生这种情况有些困惑。有任何想法吗?

https://intellij-support.jetbrains.com/hc/en-us/community/community/posts/115000094584-IDEA-IDEA-IDEA-ULTIMATION-2016-3-4--4--4--4----find-find-valid-certification-path-worquested-target-trget-trying-trying-to-refresh grade gape = 1##Community_Comment_Comment_115000405564

如果您在此处遵循响应,然后使用Google.com Part,请使用repo.scala-sbt.org

这样:

echo -n |openssl s_client -connect repo.scala-sbt.org:443 |sed -ne'/-begin证书 -/,/- end证书 -/p'>/tmp/scala.cer

遵循链接中其余的说明,它应该起作用。

最新更新