2016-08-23 5 views
1

GettingStarted 페이지의 my-first-system 템플릿을 사용하여 Lightbend의 Lagom을 사용해 보았습니다.lagom/activator/sbt에 대한 프록시 자격 증명을 지정하는 방법은 무엇입니까?

저는 Windows 10 및 회사 프록시를 사용하고 있습니다.

Activator는 프록시에 대한 자격 증명이 없어 일부 종속성을 다운로드하지 못합니다. 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와 암호를 지정해야합니까?

안전한 방법으로 어떻게 할 수 있습니까?

답변

0

활성제는 파일 ~/.activator/activatorconfig.txt에 귀하의 경우

#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE 
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE 

에서, 시스템 등록 정보를 확인해야한다.

이것은 "프록시가"섹션으로 https://www.lightbend.com/activator/docs

스크롤의 FAQ 섹션에서 상세히 설명된다.