在Windows 10上安装了JDK 8和sbt-1.2.8.msi。从https://github.com/scala-js/scalajs-下载了一个scala.js项目,用于存储包含Scala.js教程随附代码的代码。教程。
从项目根目录运行sbt会发出警告和错误。
我没有使用存储库的专用代理,也不在我的sbt配置中包含〜/ .sbt / repositories文件。
[info]正在从plugins.sbt加载项目scalajs-tutorial-0-6-x-build的设置... [info]从F:\ Dev \ Scala \ scalajs-tutorial-0.6.x \ project加载项目定义 [info]正在更新ProjectRef(uri(“文件:/ F:/Dev/Scala/scalajs-tutorial-0.6.x/project /”),“ scalajs-tutorial-0-6-x-build”)... [警告] ::::::::::::::::::::::::::::::::::::::::::::::::: [警告] ::无法解决的依赖:: [警告] ::::::::::::::::::::::::::::::::::::::::::::::::: [警告] :: org.scala-js#sbt-scalajs; 0.6.28:由于依赖关系导致解析多次失败:org.scala-js#sbt-scalajs; 0.6.28 {compile = [default(compile)]}: : [警告] typesafe-ivy-releases:无法获取org.scala-js#sbt-scalajs的资源; 0.6.28:res = https://repo.typesafe.com/typesafe/ivy-releases/org.scala- js / sbt-scalajs / scala_2.12 / sbt_1.0 / 0.6.28 / ivys / ivy.xml:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider .certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径 [警告] sbt-plugin-releases:无法获取org.scala-js#sbt-scalajs的资源; 0.6.28:res = https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ org.scala-js / sbt-scalajs / scala_2.12 / sbt_1.0 / 0.6.28 / ivys / ivy.xml:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun .security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径 [警告] ::::::::::::::::::::::::::::::::::::::::::::::::: [警告] [警告]注意:一些未解决的依赖项具有额外的属性。检查这些依赖项是否存在所请求的属性。 [警告] org.scala-js:sbt-scalajs:0.6.28(scalaVersion = 2.12,sbtVersion = 1.0) [警告] [警告]注意:未解决的依赖项路径: [警告] org.scala-js:sbt-scalajs:0.6.28(scalaVersion = 2.12,sbtVersion = 1.0)(F:\ Dev \ Scala \ scalajs-tutorial-0.6.x \ project \ plugins.sbt#L1-2 ) [警告] +-默认值:scalajs-tutorial-0-6-x-build:0.1.0-SNAPSHOT(scalaVersion = 2.12,sbtVersion = 1.0) [错误] sbt.librarymanagement.ResolveException:未解决的依赖项:org.scala-js#sbt-scalajs; 0.6.28:解析因依赖项而多次失败:org.scala-js#sbt-scalajs; 0.6.28 {compile = [ default(compile)]} ::