无法在代理后面创建lagom scala项目

时间:2017-04-18 19:48:04

标签: proxy lagom

我正在尝试在Windows 7机器上创建一个新的lagom scala项目(在代理后面),但是我收到错误消息“org.eclipse.jgit.api.errors.TransportException:git://github.com/lagom/lagom -scala.g8.git:连接超时“

这是命令:sbt new lagom / lagom-scala.g8

我设置了代理环境变量http_proxy但仍然出现此错误。有什么想法......让这个有用吗?

1 个答案:

答案 0 :(得分:0)

https://github.com/lagom/lagom/issues/683

进行了讨论

结论是这是对sbt 0.13.13的限制,它使用git协议来克隆模板,不能使用替代协议。

您可以通过强制更新版本的sbt并指定存储库的完整https URL来解决此问题,如下所示:

sbt new -Dsbt.version=0.13.15 https://github.com/lagom/lagom-scala.g8
相关问题