February 03

For now at least not the whole overview of the controller to lose domains and views, it is perhaps time, the IDE support for Groovy and Grails to look at. The IDE of my choice is Eclipse. It is open source, and with its diversity, the plugin Swiss army knife of development environments (albeit a rather large :-) ).

For Groovy and Grails are the following update URL quite a nice plugin with highlighting and a few other amenities.

http://dist.codehaus.org/groovy/distributions/update/

For a pure Groovy project is available in this article on Eclipse Zone .. a pretty good guide with screenshots

The Grails integration with Eclipse, it is of course a section in the excellent documentation of Grails. I have very good experience with the following steps:

  • Installation of the Groovy Eclipse plugin, as described above
  • Creating your own Workplaces for Grails projects, pointing to the folder where the actual Grails projects are
  • Adaptation of Eclipse, as described in the documentation described
  • Creating a new Grails project on the command line with grails create-app
  • Creating 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 plugin that Groovy is the best choice to manage Grails projects. Not succeeded 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 someone has a solution for it, I would be very grateful to him anyway.

Update: the latest version of the paper I have to improve maintainability as part of a small tutorial to Grails, and outsourced direct links in the right sidebar.

gklinkmann written by \ \ tags: , ,

2 Comments to "comfort - Grails and Eclipse"

  1. Dirk Hesse Says:

    Hello

    nice article to get into the groovy world. Thank you for that. What excites me most is the fact that Java is groovy. As far as I have just tried, I can call my EJB's in a groovy class (not tried the other way around)

    Since this blog entry since even now some time has passed, it would be nice to know how your experiences have become.
    What about the refactoring? The code completion SharpDevelop reminds me of my beginnings .... and reacts very slowly with me even when I press CTRL + SPACE.
    Furthermore, I do not like it I do not object jdoc or call the help for the respective methods and available. For beginners, the Java + Eclipse spoiled but are somewhat bumpy start. If it is written in their own classes is not possible, the jdoc can (with mouseover, etc.) to indicate the language would unfortunately not feasible in our development team. Keyword: factors and constraints ;)

    Maybe I also make what is wrong ....

  2. gklinkmann Says:

    I do not think you're doing something wrong. The Eclipse plugin is also in my view, be improved. This is also the fact why it is not used in our development team.
    I've used so far only for Grails prototype. In this area there is in my view, but nothing with which one can quickly achieve results with a customer to have a discussion platform. Especially with the Hibernate tools that are available as a plugin for Eclipse available, can quickly develop a Web application for an existing database model.
    Soon I would like to establish Grails for Web tests. A blog entry about it will follow.

  3. Grails and Eclipse »all-IT Says:

    [...] Again to write a blog entry on this subject (may result in more). One of my first article on Grails showed how to make Grails and Eclipse together. This entry was so successful that I [...]

Add a comment

Yes, I would like to be notified about comments!