Eclipse 中的 Grails 2.2.0 支持 [英] Grails 2.2.0 Support in Eclipse

查看:14
本文介绍了Eclipse 中的 Grails 2.2.0 支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 eclipse-jee-juno 创建一个 grails 2.2.0 项目.它给了我一个错误

I am trying to create a grails 2.2.0 project using eclipse-jee-juno. It gives me an error

项目预期的 Groovy 编译器级别与工作区编译器级别不匹配.项目编译级别为:1.8.X工作区编译器级别为 1.7.X转到项目属性 -> Groovy 编译器,为该项目设置 Groovy 编译器级别.

背景:我已经安装了 grails 2.2.0,我能够使用命令行(不是eclipse)创建和运行一个示例项目/控制器>

Background: I have installed grails 2.2.0 and I am able to create and run a sample project/controller by using the command line (not eclipse)

推荐答案

Grails 2.x 需要 groovy 1.8+ 才能工作.在 Eclipse 中,右键单击您的项目,从菜单中选择属性"并转到 Groovy 编译器,选择 groovy 版本 1.8.xxxx.或者您可以转到首选项"菜单并更改 groovy 编译器版本的全局设置.

Grails 2.x need groovy 1.8+ to work. In eclipse, right click your project, select 'properties' from menu and go to Groovy compiler, select groovy version 1.8.xxxx. Or you can go to 'preference' menu and change the global setting for groovy compiler version.

这篇关于Eclipse 中的 Grails 2.2.0 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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