SBT下载依赖包地址失效

Effpom 2016-09-20 12:58:44
今天刚开始学习sbt,在第一次使用时下载依赖包提示文件地址已失效,如下:

:: problems summary ::
:::: WARNINGS
[FAILED ] org.scala-sbt#collections;0.13.12!collections.jar: sun.security.validator.ValidatorException: No trusted certificate found (3366ms)

[FAILED ] org.scala-sbt#collections;0.13.12!collections.jar: (0ms)

==== local: tried

/root/.ivy2/local/org.scala-sbt/collections/0.13.12/jars/collections.jar

==== Maven Central: tried

https://repo1.maven.org/maven2/org/scala-sbt/collections/0.13.12/collections-0.13.12.jar

==== typesafe-ivy-releases: tried

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.13.12/jars/collections.jar

==== sbt-ivy-snapshots: tried

https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/collections/0.13.12/jars/collections.jar

[FAILED ] org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar: sun.security.validator.ValidatorException: No trusted certificate found (4280ms)

[FAILED ] org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar: (0ms)

==== local: tried

/root/.ivy2/local/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar

==== Maven Central: tried

https://repo1.maven.org/maven2/org/scala-sbt/incremental-compiler/0.13.12/incremental-compiler-0.13.12.jar

==== typesafe-ivy-releases: tried

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar

==== sbt-ivy-snapshots: tried

https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar

[FAILED ] org.scala-sbt#compile;0.13.12!compile.jar: sun.security.validator.ValidatorException: No trusted certificate found (3322ms)

[FAILED ] org.scala-sbt#compile;0.13.12!compile.jar: (0ms)

==== local: tried

/root/.ivy2/local/org.scala-sbt/compile/0.13.12/jars/compile.jar

==== Maven Central: tried

https://repo1.maven.org/maven2/org/scala-sbt/compile/0.13.12/compile-0.13.12.jar

==== typesafe-ivy-releases: tried

https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.12/jars/compile.jar

==== sbt-ivy-snapshots: tried

https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/compile/0.13.12/jars/compile.jar

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

:: FAILED DOWNLOADS ::

:: ^ see resolution messages for details ^ ::

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

:: org.scala-sbt#collections;0.13.12!collections.jar

:: org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar

:: org.scala-sbt#compile;0.13.12!compile.jar

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

试了试网上说的修改sbt.boot.properties,提示
Error: Invalid or corrupt jarfile /opt/scala/sbt/sbt/bin/sbt-launch.jar
望大牛能够给予指点。
...全文
1533 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Effpom 2017-06-05
  • 打赏
  • 举报
回复
引用 1 楼 heikefangxian23 的回复:
你搞定没?楼主
删除之前sbt环境,重新配置即可,这么长时间了,你应该也解决了,哈哈
工程师123123123 2016-10-17
  • 打赏
  • 举报
回复
你搞定没?楼主

1,258

社区成员

发帖
与我相关
我的任务
社区描述
Spark由Scala写成,是UC Berkeley AMP lab所开源的类Hadoop MapReduce的通用的并行计算框架,Spark基于MapReduce算法实现的分布式计算。
社区管理员
  • Spark
  • shiter
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧