【发布时间】:2014-03-24 19:28:23
【问题描述】:
安装 Java 和 Grails,设置 GRAILS_HOME、JAVA_HOME 和 Path 变量。安装 GGTS 并尝试创建新的 Grails 项目时出现以下错误。
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 并从命令行尝试。 我已手动设置代理设置,因为“设置代理”命令不会更新 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.
|
【问题讨论】:
-
我没有发现 ggts 的任何问题。我关注了这个grails.asia/…
-
1.我看到你的 JDK 路径中有空格,在 Windows 上给我带来了很多问题。确保您的 JDK + GRAILS 安装在没有空格的路径中。例如。在您的情况下,它可以是 C:\Java\jdk1.7.0_51。参考见我之前的帖子stackoverflow.com/a/20048435/1811107 2. 我用GGTS有一段时间了,感觉很稳定——我个人的偏好是3个月刷新一次整个环境。
-
是的,我一直在关注相同的 (grails.asia/…),我认为 JDK 路径中的空间没有任何问题,我可以使用 grails 命令从命令行创建一个新项目。问题是在使用 IDE 时,它创建了项目骨架,但之后超时抛出上述错误。
标签: grails