Grails 2.2.0 Support in Eclipse

亡梦爱人 提交于 2019-12-30 06:51:09

问题


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)


回答1:


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.




回答2:


Here are the steps that enabled me to run the application on grails 2.2.0.

  1. Install JDK 7
  2. Install Grails 2.2.0
  3. Install eclipse-jee-juno or GGTS
  4. Download grails-2.2.0.RC4
  5. Under GRAILS_HOME\lib, Create a directory com.springsource.springloaded with a subdirectory springloaded-core
  6. Copied contents of RC4\lib\org.springsource.springloaded into com.springsource.springloaded

Restart GGTS or Eclipse. Your GRAILS app should be up and running!



来源:https://stackoverflow.com/questions/14189786/grails-2-2-0-support-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!