问题描述
尝试运行新的play 2.0控制台时(在cmd中键入"play")在Windows上的项目文件夹中(按照框架网络教程的说明).
When trying to run the new play 2.0 console (typing 'play' in cmd)on windows from project folder (as instructed by framework web tutorial).
我收到:
C:\temp\play-2.0\play-2.0\todolist>play
[info] Loading project definition from C:\temp\play-2.0\play-2.0\todolist\projec
t
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.hibernate/hibernate-validator/4.2.0.Final/ivys
/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/javax.validation/validation-api/1.0.0.GA/ivys/ivy.
xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.springframework/spring-context/3.0.7.RELEASE/i
vys/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.springframework/spring-core/3.0.7.RELEASE/ivys
/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.springframework/spring-beans/3.0.7.RELEASE/ivy
s/ivy.xml
列表不断...
出什么问题了,为什么当我只想使用控制台/运行应用程序时尝试访问远程位置?
what is wrong , and why is it trying to access remote locations when all i want to do is use console/run app ?
推荐答案
我遇到了同样的问题,我通过修改play/framework
中build.bat
文件的最后一行来解决了这个问题,
I had the same problem, I resolved it by modifying the last line of build.bat
file in play/framework
like this :
java -Dhttp.proxyUser = MyProxyAccount -Dhttp.proxyPassword = MyProxyPwd -Dhttp.proxyHost = MyProxyIp -Dhttp.proxyPort = MyProxyPort -Xms512M -Xmx1024M -Xss1M -XX:+ CMSClassUnloadingEnabled -XX:MaxPermSize = 256M%DEBUG_PARAM%-Dfile.encoding = UTF8 -Dplay.version =%PLAY_VERSION%"- Dsbt.ivy.home =%〜dp0 .. \ repository" -Dplay.home =%〜dp0". -Dsbt.boot.properties ="file:///%p%sbt/sbt.boot.properties" -jar%〜dp0sbt \ sbt-launch.jar"%*
java -Dhttp.proxyUser=MyProxyAccount -Dhttp.proxyPassword=MyProxyPwd -Dhttp.proxyHost=MyProxyIp -Dhttp.proxyPort=MyProxyPort -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% -Dfile.encoding=UTF8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbt\sbt-launch.jar" %*
希望获得帮助.
这篇关于播放Framework 2.0控制台错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!