idea

Steve Dalton's picture

IntelliJ Grails Plugin and importing existing Grails projects

Something has been really annoying me for last couple of weeks.

Whenever I import a grails project from existing sources into IntelliJ (8.1.4), even though I had installed the Grails facet correctly - the Grails project view features would not be visible (eg. easy switching between controllers and views etc). New Grails projects created in IDEA were fine - so my setup was good.

Anyway, after searching the forums and lists I could find a lot of people complaining about the IDEA Grails plugin but no solution to my problem.

I finally gave up and thought maybe I could make some sense of the Intellij .iml file. It wasn't as bad as I expected there is a line:

<module relativePaths="true" type="JAVA_MODULE" version="4">

I noticed that in the "created from scratch" version it was:

<module relativePaths="true" type="GRAILS_MODULE" version="4">

So - I changed it in my none-working projects - and Voila! it worked.

Hope this helps others and saves some time - I wasted a fair bit looking for a solution.

Syndicate content