2014-03-24 20 views
0

安装Java和Grails,设置GRAILS_HOME,JAVA_HOME和Path变量。安装了GGTS,当试图创建一个新的Grails项目时,我得到以下错误。创建新的Grails项目时出错 - GGTS/STS/Eclipse与GGTS插件

The command 'C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe (Mar 24, 2014, 1:59:29 PM)' 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_51\bin\javaw.exe (Mar 24, 2014, 1:59:29 PM) 
---- System.out ---- 
| Loading Grails 2.2.4 
| Configuring classpath 
---- System.err ---- 

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

Terminating process: Timeout: no new output for 180000 milliseconds 

使用Eclipse + GGTS插件尝试相同,仍然有同样的问题。 从命令行创建新项目没有问题。从命令行创建一个新的Grails项目,然后将该项目导入到工作区中,并在尝试创建新控制器时引发相同的错误。不知道是否有其他人有同样的问题。

GGTS是否足够成熟?有其他选择吗?

好吧,现在我关闭我的IDE并尝试从命令行。 我已经手动设置了我的代理设置,因为'set proxy'命令不会更新ProxySettings文件。 从命令行我能够创建一个新的项目,当我尝试编译我得到这个...

| Error Resolve error obtaining dependencies: Failed to read artifact descriptor 
for org.grails:grails-docs:jar:2.3.7 (Use --stacktrace to see the full trace) 
| Error Required Grails build dependencies were not found. 
This is normally due to internet connectivity issues (such as a misconfigured proxy) 
or missing repositories in grails-app/conf/BuildConfig.groovy. Please verify your 
configuration to continue. 
| 
+0

我还没有找到ggts的任何问题。我遵循这个http://grails.asia/grails-tutorial-for-beginners-setup-your-windows-development-environment/ – JavaDev

+0

1.我看到你的JDK路径中有空格,在创建了很多问题的窗口中为了我。确保您的JDK + GRAILS安装在不含空格的路径中。例如。在你的情况下,它可以是C:\ Java \ jdk1.7.0_51。更多信息参见我之前交 http://stackoverflow.com/a/20048435/1811107 2.我一直在使用GGTS有一段时间了,它似乎稳定 - 我个人的偏好是刷新整个环境一次在3个月内。 – user1811107

+0

是的,我一直遵循相同的(http://grails.asia/grails-tutorial-for-beginners-setup-your-windows-development-environment/),我不认为JDK路径中的空间是任何问题,我可以使用grails命令从命令行创建一个新项目。问题是在使用IDE时,它创建了项目框架,但超时后抛出上述错误。 – srb

回答

1

我曾经遇到过类似的问题所在,并在宽限期的东西,我连接到互联网并想到了实现。

请参阅this link我确信它会有帮助。

+0

感谢您的回复。 是的,我手动修复了我的代理设置,因为set proxy命令实际上并未更新代理设置文件。看到我原来的帖子上的编辑。 – srb

+0

问题在于代理,在Windows上缺少双引号。我不得不手动编辑代理设置。 感谢您的帮助! – srb