我是Scala和SBT領域的全新品牌。 我讀了一些關於SBT作爲Scala的優秀構建工具的內容;所以我去了網頁並下載它。SBT 0.13.6 Windows 8 - 未解決的依賴關係
我做了入門的事情,它不工作:-(
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
「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.
你需要更多的,我會很樂意提供任何記錄是有用
?當我看到第一個警告時,C:\ Users \ raoel.ivy2 \ local \ org.fusesource.jansi \存在,但沒有子文件夾'jansi'。 我繼續使用URL https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml,它返回一個404格式良好的json。
如果我看看我的日誌文件,它正在位於D:/tools/sbt/bin/sbt-launch.jar!的JAR文件中尋找'org.apache.ivy.plugins.resolver.SshResolver'/ org/apache/ivy/core/settings,它是正確的:SshResolver不存在。
所以......所有的錯誤都是正確的。它不工作。
我該如何去解決這個問題?這是一個乾淨的安裝SBT(我做了卸載 - 重新安裝的東西;作爲Windows用戶,你習慣了它)。而且,爲什麼我是唯一報告這一點的人。我的機器真的是特定的嗎?這怎麼可能,因爲它是一個乾淨的安裝?
我需要配置一些東西嗎? JAVA_HOME被定義並正確。我不知道還有什麼需要的。
感謝您的任何建議!
嘗試更新java嗎?你有一個證書問題。你在防火牆或代理後面嗎?你能夠導航到「https:// repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom」嗎? – drstevens 2014-10-31 18:52:17
我同意@drstevens。這不是sbt的問題,而是您的JVM的SSL證書問題或您網站的網絡問題。嘗試將瀏覽器指向「服務器訪問錯誤」報告的位置 – 2014-11-02 13:45:19
我可以打開錯誤中提到的URL,因此沒有代理或網絡問題。我查看了一些Java和證書,我在JDK文件夾中記錄了'jre \ lib \ security \ cacerts'只有2KB,而我的SDK文件夾中的這個文件是91KB。用SDK版本覆蓋JDK版本有幫助!我可以記得幾個月前用證書做的事情;我想我在某個時候刪除並重新創建了該文件。但是,全球證書提供者並未被添加。謝謝你指點我正確的方向! – raoel 2014-11-03 14:57:19