2012-03-18 17 views
8

Quando si tenta di eseguire la nuova console di gioco 2.0 (digitando 'play' in cmd) in Windows dalla cartella del progetto (come indicato dal tutorial web del framework).play console 2.0 error error

ricevo:

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 

elenco potrebbe continuare a lungo ...

ciò che è sbagliato, e perché è tentando di accedere sedi remote, quando tutto quello che voglio fare è l'uso della console/run app?

+0

Beh, non sono d'aiuto qui, ma ho aperto questo ticket sul loro bug tracker: https://play.lighthouseapp.com/projects/82401-play-20/tickets/318-play-console-times -out-on-start –

risposta

11

Ho avuto lo stesso problema, ho risolto che modificando l'ultima riga del file in build.batplay/framework come questo:

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 = UTF-8 -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"% *

Spero che questo aiuto.

+0

Che è stato molto utile. Grazie!! – ildyone

+0

Lo stesso sta accadendo con me ma non per tutte le dipendenze. Mostra l'errore per org.scala-lang # jline; 2.10.4 Please help –

2

Si è connessi a Internet quando si digita il comando play?

Ivy è un gestore delle dipendenze e crea un repository locale per le dipendenze utilizzate per creare un progetto.

+1

Sono connesso ma dietro un firewall che non posso controllare/disabilitare. penso che a meno che non richieda di aggiornare da un repository non dovrebbe farlo automaticamente. (da circa 80mb + di framework dovrebbe funzionare fuori dalla scatola) –

+0

Non riesco nemmeno a navigare in quella posizione dal mio browser che è sicuramente connesso a internet –

2

Ero connesso tramite un proxy e non aveva alcun nome utente o password. Ho modificato l'ultima riga del file build.bat in gioco/cartelle quadro a:

java -Dhttp.proxyHost = EnterHostNameHere -Dhttp.proxyPort = EnterPortNumberHere -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"% *

Spero che questo funzioni ..! :)