2016-08-23 9 views
1

GettingStartedページのmy-first-systemテンプレートを使用してLightbendのLagomを試しています。lagom/activator/sbtのプロキシ認証情報を指定する方法は?

私はWindows 10を使用しており、企業プロキシの背後にあります。

アクティベータは、プロキシの資格情報がないためにいくつかの依存関係をダウンロードできません。 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セクションに詳細に記載されています。

関連する問題