2014-12-08 45 views
0

我是新的Grails用戶。我下載了Grails 2.4.4 + SBT。我相信有 正確安裝它,當我嘗試運行一個測試程序,我收到以下消息(錯誤):Grails命令(創建應用程序測試),更新項目測試的grails依賴關係

The command 'C:\Program Files\Java\jdk1.7.0_17\bin\javaw.exe (4 déc. 2014 16:12:47)' was terminated because it didn't produce new output for some time. See details for the output produced so far. 

我的Java和Grails的路徑配置正確。

那麼爲什麼我得到這個錯誤?添加代理服務器設置後

我得到這個錯誤:

Problem executing: grails add-proxy toto --host=192.168.1.1 --port=3128 
    The command 'C:\Program Files\Java\jdk1.7.0_17\bin\javaw.exe 
    was terminated because it didn't produce new output for some time. 
    See details for the output produced so far. 





If you think the command simply needed more time, you can increase the time   limit in the Grails preferences page. 



See menu Windows >> Preferences >> Grails >> Launch 
Command: C:\Program Files\Java\jdk1.7.0_17\bin\javaw.exe (8 déc. 2014 13:30:47) 
---- System.out ---- 
|Loading Grails 2.4.4 
|Configuring classpath 
---- System.err ---- 

Terminating process: Timeout: no new output for 180000 milliseconds 
------System.out:----------- 
|Loading Grails 2.4.4 
|Configuring classpath 
------System.err:----------- 

Terminating process: Timeout: no new output for 180000 milliseconds 

的感謝!

回答

0

您可能是代理的背後。
檢查命令行:grails list-plugins
如果失敗設置代理配置(http://grails.org/doc/latest/ref/Command%20Line/set-proxy.html):

grails add-proxy client --host=proxy-server --port=4300 
     --username=guest --password=guest 
grails set-proxy client 
+0

感謝,很可能沒有互聯網連接使用Grails的工作? – 2014-12-08 12:17:57

+0

Grails需要下載您在應用中使用的所有依賴項(插件,jar ......)。下載後,您可以使用離線模式,請參閱此處:[http://grails.org/doc/latest/guide/conf.html](http://grails.org/doc/latest/guide/conf.html ) – Victor 2014-12-08 12:45:57

+0

看到這個答案例如:[http://stackoverflow.com/questions/15470813/why-grails-run-app-tries-to-access-remote-servers-during-compiling](http://stackoverflow。 com/questions/15470813/why-grails-run-app-tries-to-access-remote-servers-compiling) – Victor 2014-12-08 12:46:47