IntelliJ 11 - Grails SDK未配置 [英] IntelliJ 11 - Grails SDK is not configured

查看:182
本文介绍了IntelliJ 11 - Grails SDK未配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将IntelliJ 10升级到了最新的11.0.1版本。我正在编写grails应用程序,直到我使用旧版本的IntelliJ时,一切都很好,但是11不允许我成功添加Grails SDK(2.0.0) - 我试图添加框架支持, t似乎仍然存在(添加Groovy然后选择Grails - 没有任何反应)。我也试图按照以下步骤操作: IntelliJ IDEA 9.0 - 无法为Grails应用程序选择项目SDK



如果有人能够指示我如何配置Grails SDK,我将不胜感激 - 或者我的配置可能有问题。



谢谢,




这正是我我已经定义了我的全球图书馆,但我的问题仍然完全相同。



我遵循OverZealous的建议,创建了一个新的Grails项目,其名称与原始的完全相同,繁荣现在一切都很好!感谢您的帮助。

解决方案

您不需要Groovy和Grails for Grails项目,只需使用Grails SDK即可。当创建一个新的Grails项目时,可以选择添加新的SDK,选择Grails安装的主路径,它将自动配置为全局库,并且该库将作为添加为Grails库配置包含所有来自 GRAILS_HOME \dist 的jar文件。 GRAILS_HOME \lib ,以及 src 目录中的所有jar。










换句话说,它没有配置为框架,它只是一个库,所有来自Grails发行版的jar添加到模块依赖项中。


I have recently upgraded my IntelliJ 10 to the latest 11.0.1 version. I am writing grails app and until I was using the older version of IntelliJ everything was fine, however 11 doesn't allow me to successfully add Grails SDK (2.0.0) - I was trying to add the framework support, this however doesn't seem to be persisted (after adding Groovy and then choosing Grails - nothing happens). I have tried to follow those steps as well: IntelliJ IDEA 9.0 - unable to select project SDK for Grails application

I would be grateful if someone would be able to point me how to configure Grails SDK - or what could be wrong in my configuration.

Thanks,


This is exactly the way that I have my global library defined and still I was having exactly the same issue.

I followed OverZealous advice and created a new Grails project named exactly the same as the original one and boom everything is fine now! Thanks for help.

解决方案

You don't need both Groovy and Grails for Grails project, just use Grails SDK. When creating a new Grails project there is an option to add new SDK, select the home path of your Grails installation and it will be configured automatically as a Global Library and this library will be added as a dependency to your module.

Grails library configuration contains all the jars from GRAILS_HOME\dist and GRAILS_HOME\lib, plus all the jars from the src directory.


In other words, it's not configured as a framework, it's just a library with all the jars from Grails distribution added to the module dependencies.

这篇关于IntelliJ 11 - Grails SDK未配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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