【问题标题】:typesafe activator dependency error类型安全激活器依赖错误
【发布时间】:2015-04-20 16:19:21
【问题描述】:

我刚刚下载了最后一个激活器版本(版本 1.2.12 - 离线分发),当我按照文档创建新的 scala 项目 (https://www.playframework.com/documentation/2.3.x/NewApplication) 时,我发现了一些依赖关系错误。

如何获得未解决的依赖关系?
我可以像 mvn:install 一样安装缺少的依赖项吗?

[信息] 更新 {file:/home/myhome/workspaceScala/play-scala/project/}play-scala-build... [信息] 解决 com.typesafe.play#routes-compiler_2.10;2.3.8 ... [错误] 服务器访问错误:连接超时 url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/routes-compiler_2.10/2.3.8/ivys/常春藤.xml [错误] 服务器访问错误:连接超时 url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/routes-compiler_2.10/2.3.8/jars/路线-compiler_2.10.jar [信息] 解决 commons-io#commons-io;2.0.1 ... [错误] 服务器访问错误:连接超时 url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/commons-io/commons-io/2.0.1/ivys/ivy.xml [信息] 解决 com.typesafe.play#sbt-run-support_2.10;2.3.8 ... [错误] 服务器访问错误:连接超时 url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-run-support_2.10/2.3.8/常春藤/ivy.xml [错误] 服务器访问错误:连接超时 url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-run-support_2.10/2.3.8/罐子/sbt-run-support_2.10.jar

【问题讨论】:

标签: scala playframework typesafe-activator typesafe


【解决方案1】:

谢谢 singhakash 和 Sarvesh,这是网络问题。

我认为最好的解决方案是设置环境变量ACTIVATOR_OPTS。 我将此行添加到我的 .bashrc 文件 (~/.bashrc):

导出 ACTIVATOR_OPTS="-Dhttp.proxyUser=MyProxyAccount -Dhttp.proxyPassword=MyProxyPwd -Dhttp.proxyHost=MyProxyIp -Dhttp.proxyPort=MyProxyPort"

非常感谢

【讨论】:

    猜你喜欢
    • 2015-12-29
    • 2014-08-21
    • 2013-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-19
    • 1970-01-01
    相关资源
    最近更新 更多