TypeSafe Activator 1.3.2-公司代理



我正试图通过typesafe activator ui创建示例Play Framework项目。根据https://typesafe.com/activator/docs,我做了以下工作:

创建c:usersmyuser.activatoractivatorconfig.txt时使用:

# Proxy settings
-Dhttp.proxyHost=proxyname
-Dhttp.proxyPort=80
-Dhttps.proxyHost=proxyname
-Dhttps.proxyPort=80
# Here we configure the hosts which should not go through the proxy.  You should include your private network, if applicable.
-Dhttp.nonProxyHosts="localhost|127.0.0.1"
# These are commented out, but if you need to use authentication for your proxy, please fill these out.
#-Dhttp.proxyUser=PUT YOUR PROXY USER HERE
#-Dhttp.proxyPassword=PUT YOUR PROXY PASSWORD HERE

并创建了包含与activatorconfig.txt完全相同的属性的c:usersmyuser.sbtjvmargsjvmargs只是一个没有扩展名的文本文件。

当我运行activator ui,然后尝试创建一些示例应用程序时,我在控制台中得到以下内容:

Checking for a newer version of Activator (current version 1.3.2)...
   ... failed to get latest version information: java.net.SocketTimeoutException: connect timed out
Found previous process id: 12236
Local repository: activator-launcher-local @ file:////C:/activator-1.3.2/repository
Local repository: activator-local @ file:////C:/activator-1.3.2/repository
Play server process ID is 7304
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /127.0.0.1:8888
[info] a.e.s.Slf4jLogger - Slf4jLogger started
[info] c.a.h.AmazonHttpClient - Configuring Proxy. Proxy Host: proxyname Proxy Port: 80
[info] application - Failed to record a clone of 'hello-slick-2.1': java.net.ConnectException: Connection timed out: connect
[info] application - Failed to record a clone of 'hello-slick-2.1': java.net.ConnectException: Connection timed out: connect

而且在UI中,这个过程显然不会继续创建示例。知道我做错了什么吗?

尝试将代理添加到系统变量中(控制面板->系统->编辑系统环境变量->环境变量):

HTTP_PROXY=http://<host>:<port>

设置变量后,您需要重新启动计算机。

结果应该是这样的:

https://drive.google.com/file/d/0B3dqHRwrCMBCZUVIMElOeDV5UU0/view?usp=sharing

最新更新