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

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

问题描述

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



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

背景:我已经安装了grails 2.2.0,我可以使用命令创建并运行示例项目/控制器行(不是eclipse)

解决方案

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


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

Groovy compiler level expected by the project does not match workspace compiler level. Project compiler level is: 1.8.X Workspace compiler level is 1.7.X Go to Project properties -> Groovy compiler to set the Groovy compiler level for this project.

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

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

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