IntelliJ 12 Grails 2.1配置 - 未配置Grails SDK [英] IntelliJ 12 Grails 2.1 Configuration - Grails SDK not configured

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

问题描述

我觉得我现在缺少一些简单的东西。我在运行IntelliJ 10时从1.3.7升级到grails 2.1.1,最近我升级到IntelliJ 12并导入了所有设置。不知何故,在IntelliJ 12的项目中,我没有grails SDK。

I feel like I'm missing something simple at this point. I upgraded to grails 2.1.1 from 1.3.7 while running IntelliJ 10, recently I upgraded to IntelliJ 12 and imported all settings. Somehow in the project in IntelliJ 12, I have no grails SDK.

我的全局库已定义包含所有正确.jars的grails 2.1.1,但是,工具菜单缺少Grails子菜单,并尝试运行应用程序会显示错误消息,表明没有配置Grails SDK。

My Global Library has grails 2.1.1 defined with all the correct .jars included, however, the Tools menu is missing the "Grails" sub-menu, and attempting to run the app gives the error message that Grails SDK is not configured.

如果我为grails创建一个新项目,SDK会正确配置,Grails会显示在工具菜单中。我错过了什么阻止我将Grails SDK添加到此项目中?感谢社区,您的时间和建议。

If I create a new project for grails, the SDK configures correctly and Grails shows in the Tools menu. What am I missing preventing me from adding the Grails SDK to this project? Thank you, community, for your time and suggestions.

推荐答案

您不必创建新项目。

有同样的问题,我花了很多时间来解决它:

Had the same problem, and it took me quite some search to resolve it:


  • 对点击你的Grails模块

  • 点击添加框架支持

  • 选择Groovy

  • 下拉列表使用库将允许您选择一个grails库。

  • 如果下拉列表为空,请按创建并选择您的grails库目录。

  • Grails SDK已配置

  • right click your Grails module
  • click "Add framework support"
  • select "Groovy"
  • The dropdown next to "Use library" will allow you to choose a grails library.
  • If the dropdown is empty press "create" and choose your grails library directory.
  • Grails SDK is configured then

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

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