进口Grails如何投射到Intellij 13.1 IDEA? [英] How import grails project to Intellij 13.1 IDEA?

查看:180
本文介绍了进口Grails如何投射到Intellij 13.1 IDEA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将一个grails项目导入IntelliJ IDEA。

I need to import a grails project to IntelliJ IDEA.

(我是IntelliJ的新手,grails,groovy)。

(I am very new to IntelliJ, grails, groovy).

当我尝试构建项目时,每个
模块都会获得以下错误:
错误:无法编译Groovy文件:否Groovy库是为模块''

When I try to build the project, the following error is obtained for each of the modules: Error:Cannot compile Groovy files: no Groovy library is defined for module ''

你知道如何解决这个问题 - 如何正确导入项目 - 因为我相信Grails安装包含一个Groovy库。

Would you know how I can fix this - how to correctly import the project - since I believe a Grails installation contains a Groovy library.

当我导入GGTS(作为Grails项目)时,项目构建正常。

When I import into GGTS (as a Grails project), the project builds ok.

推荐答案

先决条件:您需要IntelliJ IDEA终极版才能获得Grails支持(请参阅社区/终极版比较

Prerequisite: you need the Ultimate Edition of IntelliJ IDEA to get Grails support (see Frameworks and Technologies in the community/ultimate edition comparison)

使用终极版你...


  1. 使用文件/打开.. 打开项目

  2. 点击配置SDK 链接显示在右上角的绿色弹出窗口中( Grails SDK找不到:模块'import'没有Grails SDK。配置SDK

  3. 创建Grails SDK

  4. 如果绿色弹出窗口不再可见,您可以打开事件记录(右下角)。在那里你会看到弹出的消息,你可以在3点继续。

  1. use File/Open.. to open the project
  2. click the Configure SDK link in the green popup that appears on the top right (Grails SDK not found: Module 'import' has no Grails SDK. Configure SDK)
  3. create the Grails SDK
  4. if the green pop up is not visible anymore you can open the Event Log (bottom right). There you will find the message from the pop up and you can continue at 3.

这篇关于进口Grails如何投射到Intellij 13.1 IDEA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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