创建新的Grails项目时出错 - GGTS / STS / Eclipse与GGTS插件 [英] Error creating a new Grails Project - GGTS/STS/Eclipse with GGTS Plugin

查看:163
本文介绍了创建新的Grails项目时出错 - GGTS / STS / Eclipse与GGTS插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

 命令'C:\程序文件\Java\jdk1.7.0_51\bin\javaw.exe(2014年3月24日,1:59:29)'被终止了,因为它在一段时间内没有产生新的输出。 

查看迄今为止产生的输出的详细信息。

如果您认为该命令只需要更多时间,则可以在Grails首选项页面中增加时间限制。

查看菜单Windows>>首选项>> Grails>>启动
命令:C:\程序文件\Java\jdk1.7.0_51\bin\javaw.exe(2014年3月24日,1:59:29)
--- - System.out ----
|加载Grails 2.2.4
|配置类路径
---- System.err ----

终止进程:超时:180000毫秒内没有新输出
------ System.out: -----------
|加载Grails 2.2.4
|配置类路径
------ System.err:-----------

终止进程:超时:180000毫秒内没有新输出

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


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



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

pre $ $ $ $ C> |错误解决错误获取依赖关系:无法读取org.grails的工件描述符
:grails-docs:jar:2.3.7(使用--stacktrace查看完整跟踪)
|错误要求找不到Grails构建依赖关系。
这通常是由于互联网连接问题(例如错误配置的代理)
或缺少grails-app / conf / BuildConfig.groovy中的存储库。请验证您的
配置以继续。
|


解决方案

恩,我连接到互联网和实现想到。



请参阅这个链接确定它会有帮助。


Installed Java and Grails, set the GRAILS_HOME, JAVA_HOME and Path variables. Installed GGTS and when tried to create a new Grails project I get the following error.

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

Tried the same using Eclipse + GGTS plugin and still have the same issue. Creating anew project from command line have no issues. Created a new Grails project from command line and then imported the project into workspace and when tried to create a new controller, the same error thrown. Not sure if anyone else has the same issue.

Is GGTS mature enough? Is there an alternative?

OK, Now I close my IDE and trying from command line. I have set my proxy settings manually as the 'set proxy' command does not update the ProxySettings file. From command line I am able to create a new project, and when I try to compile I get this...

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

解决方案

I once encountered something similar to your problem and by the grace, I connected to the internet and realisation came to mind.

Please see this link am sure it will be of aid.

这篇关于创建新的Grails项目时出错 - GGTS / STS / Eclipse与GGTS插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆