我正在使用GettingStarted页面中的my-first-system模板从Lightbend试用Lagom。
我使用的是Windows10,使用的是企业代理服务器。
由于缺少代理的凭据,激活器无法下载某些依赖项。我已经设置了HTTP_PROXY环境变量。
激活器报告以下错误:
[info] Updating {file:/E:/Projects/LagomHelloWorld/my-first-system/project/}my-first-system-build...
[info] Resolving com.lightbend.lagom#lagom-sbt-plugin;1.0.0 ...
[error] Server access Error: Connection timed out: connect url=https://repo.typesafe.com/typesafe/ivy-releases/com.lightbend.lagom/lagom-sbt-plugin/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[error] Server access Error: Connection timed out: connect url=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.lightbend.lagom/lagom-sbt-plugin/scala_2.10/sbt_0.13/1.0.0/ivys/ivy.xml
[error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/lightbend/lagom/lagom-sbt-plugin_2.10_0.13/1.0.0/lagom-sbt-plugin-1.0.0.pom
[error] Unable to find credentials for [ @ <proxy-ipv4-addr> ].
[warn] module not found: com.lightbend.lagom#lagom-sbt-plugin;1.0.0注意:错误消息包含实际的IPv4地址,而不是我上面显示的替代地址。
我应该在哪里指定代理的用户id和密码?
我如何才能以一种安全的方式做到这一点?
发布于 2016-08-24 03:54:41
激活器应该检查系统属性,在您的情况下
#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE在文件~/.activator/activatorconfig.txt中。
https://www.lightbend.com/activator/docs上的常见问题部分对此进行了详细描述
向下滚动到“代理后面”部分。
https://stackoverflow.com/questions/39108740
复制相似问题