Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

playframework 2.0 - play framework 2.0 console error

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).

i receive :

C:empplay-2.0play-2.0odolist>play
[info] Loading project definition from C:empplay-2.0play-2.0odolistprojec
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

list goes on and on...

what is wrong , and why is it trying to access remote locations when all i want to do is use console/run app ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.. epository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbtsbt-launch.jar" %*

Hope this help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...