Proxy 如何为lagom/activator/sbt指定代理凭据?

Proxy 如何为lagom/activator/sbt指定代理凭据?,proxy,sbt,typesafe-activator,lagom,Proxy,Sbt,Typesafe Activator,Lagom,我正在从Lightbend试用Lagom,使用GettingStarted页面中我的第一个系统模板 我在Windows10上,在一个公司代理的背后 由于缺少代理的凭据,Activator无法下载某些依赖项。我已经设置了HTTP_PROXY环境变量 activator报告了以下错误: [info] Updating {file:/E:/Projects/LagomHelloWorld/my-first-system/project/}my-first-system-build... [info]

我正在从Lightbend试用Lagom,使用GettingStarted页面中我的第一个系统模板

我在Windows10上,在一个公司代理的背后

由于缺少代理的凭据,Activator无法下载某些依赖项。我已经设置了HTTP_PROXY环境变量

activator报告了以下错误:

[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
[info]正在更新{file:/E:/Projects/LagomHelloWorld/my first system/project/}我的第一个系统构建。。。
[信息]解析com.lightbend.lagom#lagom sbt插件;1.0.0 ...
[错误]服务器访问错误:连接超时:连接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
[错误]服务器访问错误:连接超时:连接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
[错误]服务器访问错误:连接超时:连接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
[错误]找不到[@]的凭据。
[警告]未找到模块:com.lightbend.lagom#lagom sbt插件;1.0.0
注意:错误消息包含实际的IPv4地址,而不是上面显示的替代地址

我应该在哪里指定代理的用户id和密码


如何以安全的方式执行此操作?

在您的情况下,Activator应该检查系统属性

#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE
在文件
~/.activator/activatorconfig.txt

这将在有关的常见问题解答部分中详细介绍


向下滚动至“代理后”部分。在您的情况下,Activator应检查系统属性

#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE
在文件
~/.activator/activatorconfig.txt

这将在有关的常见问题解答部分中详细介绍

向下滚动至“代理后面”部分