Comfort - Grails and Eclipse
From the Groovy version 1.5 a lot has changed in the support of development environments (IDE's). The current best offers with the support of IntelliJ IDEA plugin . The IDE of my choice, however, is Eclipse. It is open source and with their diversity, the plugin Swiss Army knife of development environments (albeit a rather large
).
For Groovy and Grails based on it, there are the following update URL is a very good plugin with syntax highlighting, code completion and debugging.
http://dist.codehaus.org/groovy/distributions/update/
Only that known from Java projects, refactoring allows more comfortable in coming.
The establishment of the Groovy Eclipse plugin is the online documentation described in Groovy, but differs not from the installation of other Eclipse plugins about an update URL.
Grails for integration into Eclipse, there is of course a section in the excellent documentation for Grails. I have very good experiences with the following steps:
- Installing the Groovy Eclipse plugin, as described above
- Create your own Workplaces for the Grails project, which refers to the folder in which projects are actually Grails
- Adaptation of Eclipse, as in the documentation described
- Create a new Grails project from the command line with
grails create-app - Create an Eclipse project with the same name of the Grails project. This will be the same with all libraries included in the classpath of Eclipse.
Conclusion: In my favorite IDE Eclipse Groovy plugin choice is the the best projects to manage Grails. Failed me so far is the launch of a Grails project from Eclipse. Since the command line but with grails run-app works great and the changes during development are also immediately deployed, it is easy to get over. If anyone has a solution for it, I would be very grateful to him anyway.




August 9th, 2008 at 8:52 am
[...] Support for Grails with Eclipse. I can see in the access statistics for my post on this [...]
August 31st, 2008 at 1:31 pm
[...] The current version of the contribution I have to improve the maintainability as part of a small tutorial on Grails [...]
November 3rd, 2008 at 10:50 pm
To start a Grails project from Eclipse, you define a "RunConfiguration" in External Tools.
The location will give you the path to the grails.bat example: "$ (workspace_loc) \ grails \ bin \ grails.bat" as working directory "$ (project_loc)" and then the command as an argument "run-app".
Just as you can proceed with all other Grails commands.