Importing Grails project into IntelliJ IDEA

 

 by Taras Matyashovsky

 

I prefer IntelliJ IDEA as my Integrated Development Environment (IDE). Currect IDEA version is 8.0.*.

After You've created Your Grails project using

grails create-app application_name

please follow few simple steps to import newly created project to IntelliJ IDEA:

 

  1. Check that file application_name/.project is created. This is the Eclipse project file generated by grails create-app command during the initial project creation. IntelliJ IDEA is capable of opening such files and transforming them into IntelliJ IDEA project files.
  2. Start IntellIJ IDEA, click File > Open Project ... menu item and specify .project file as target. IntelliJ IDEA will process the file and will create project, module and workspace files.
  3. Next you need to tell IntelliJ IDEA to enable Grails support. It may be achieved by registering Grails facet for the project. Intellij IDEA may detect the facet itself and ask to register it. In case it will not, you have to do it manually.
  4. In order to manually register Grails facet open the context menu for your module item in project explorer and click on Module Settings. On the Project Structure window click + button and choose Grails facet. Then just apply the settings and close the window. Module icon will be updated with Grails facet icon - this will tell you that project module is Grails-ready.
  5. Before proceeding make sure that your project uses appropriate JDK. Click File > Project Structure and check the value in Project SDK combobox.
  6. Click Build > Rebuild Project to compile the sources - this step should be successfull, otherwise there is a trouble with your setup or source code base is broken.

 

 

Comments  

 
+1 # Alex 2009-11-18 07:47 Looks very simple ;) Reply | Reply with quote | Quote
 
 
0 # Alex 2009-11-19 02:19 I don't want tonotify me…
Notify me of follow-up comments - is not checked
Reply | Reply with quote | Quote
 
 
0 # NotAlex 2009-11-19 02:33 adding a Reply Reply | Reply with quote | Quote
 
 
0 # Саша 2009-11-19 03:10 Quoting NotAlex:
adding a Reply

Тест
Reply | Reply with quote | Quote
 
 
0 # Alex 2009-11-19 02:29 Check once again Reply | Reply with quote | Quote
 
 
0 # NotAlex 2009-11-19 02:31 text of my comment Reply | Reply with quote | Quote
 
 
0 # NotAlex 2009-11-19 02:34 Quoting NotAlex:
adding a Reply

hi!
Reply | Reply with quote | Quote
 
 
0 # myis 2009-11-19 13:12 test2 Reply | Reply with quote | Quote
 
 
0 # http://ya.ru 2009-11-19 13:20 Text of my comment Reply | Reply with quote | Quote
 
 
0 # urls 2009-11-19 13:21 http://www.google.com
http://google.com
www.google.com
google.com
Reply | Reply with quote | Quote
 
 
0 # Alex 2009-11-23 08:15 Good Reply | Reply with quote | Quote
 
 
0 # Quake 2009-11-27 04:00 test Reply | Reply with quote | Quote
 
 
0 # Quake 2009-11-27 04:40 test2 Reply | Reply with quote | Quote
 
 
0 # Quake 2009-11-30 03:37 test3 Reply | Reply with quote | Quote
 
 
0 # Quake 2009-11-30 03:38 test4 Reply | Reply with quote | Quote
 
 
0 # test 2009-11-30 08:09 test Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 08:29 ytu Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 08:30 h Reply | Reply with quote | Quote
 
 
0 # Quake 2009-12-02 08:32 q Reply | Reply with quote | Quote
 
 
0 # test 2010-03-11 07:46 testb Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh