SBT 0.13.6 Windows 8 - 未解决的依赖项

rao*_*oel 5 java certificate

我是Scala和SBT的全新品牌.我读到一些关于SBT是Scala的良好构建工具的内容; 所以我去了页面并下载了它.

我做了入门的事情,它不起作用:-(

Getting org.fusesource.jansi jansi 1.11 ...

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

    ==== local: tried

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

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

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

    ==== typesafe-ivy-releases: tried

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

    ==== 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

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

        ::          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://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://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


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

"raoel"是我的用户名.

所以我想到错误日志,并在前几行找到了这个:

setting 'ivy.default.settings.dir' to 'jar:file:/D:/tools/sbt/bin/sbt-launch.jar!/org/apache/ivy/core/settings'
setting 'ivy.basedir' to 'D:\temp\scala\.'
setting 'ivy.default.conf.dir' to 'jar:file:/D:/tools/sbt/bin/sbt-launch.jar!/org/apache/ivy/core/settings'
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.SshResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.VsftpResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.version.PatternVersionMatcher in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.trigger.LogTrigger in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.ant.AntBuildTrigger in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.IvyRepResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.signer.bouncycastle.OpenPGPSignatureGenerator in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.conflict.RegexpConflictManager in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.SFTPResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.osgi.updatesite.UpdateSiteResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.ant.AntCallTrigger in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.MirroredURLResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.packager.PackagerResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.DualResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.VfsResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.plugins.resolver.JarResolver in [] nor Ivy classloader
impossible to define new type: class not found: org.apache.ivy.osgi.obr.OBRResolver in [] nor Ivy classloader
impossible to define glob matcher: org.apache.ivy.plugins.matcher.GlobPatternMatcher was not found.
Run Code Online (Sandbox Code Playgroud)

你需要更多吗?我很乐意提供任何有用的日志记录.

当我看到的第一个警告,C:\用户\ raoel.ivy2 \本地\ org.fusesource.jansi \存在,但没有子文件夹"jansi".我继续使用URL https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml,它在格式良好的json中返回404.

如果我查看我的日志文件,它会在位于D的JAR文件中查找"org.apache.ivy.plugins.resolver.SshResolver":/tools/sbt/bin/sbt-launch.jar!/ org/apache /常春藤/核心/设置,它是正确的:SshResolver不在那里.

所以....所有错误都是正确的.它不起作用.

我该如何解决这个问题?这是一个干净的SBT安装(我做了卸载重新安装的东西;作为Windows用户,你已经习惯了它).而且,为什么我是唯一一个报告此事的人.它真的特定于我的机器吗?怎么可能,因为它是一个干净的安装?

我需要配置什么吗?JAVA_HOME是定义和正确的.我不知道它还需要什么.

谢谢你的任何建议!

rao*_*oel 1

在某个时候我清空了我的jre\lib\security\cacerts文件。它已重新创建,但全球证书提供商丢失了。

我本可以重新安装 Java,但我从仍然安装的另一个版本复制了该文件。