Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up grails project in Intellij

I'm trying to import in an existing grails project into Intellij but its not recognizing the SDK.

I already setup my paths in my home directory /.bash_profile here is what I got going in there.

export GRAILS_HOME=/Applications/grails-2.0.4
export PATH=$PATH:$GRAILS_HOME/bin

Now when I fire up Intellij and do a file > new Project > Create project from existing source I name my project then when I get to SDK there is no grails SDK. I presumed when I setup my path in the .bash_profile it would recognize the path to the grails SDK.

Any help on this would be great.

like image 353
Chapsterj Avatar asked May 24 '12 20:05

Chapsterj


2 Answers

Check is Grails plugin installed.

Go to Projects, right click to your project name > Grails > Configure Grails SDK.

Create SDK from there ...

like image 67
Aram Arabyan Avatar answered Nov 12 '22 00:11

Aram Arabyan


What I've not seen here is the question if you use the Ultimate or Community version of Intellij? Because it's not possible to get Grails running in the Community version of Intellij - the plugin is only available within the Ultimate version...

Other than that, I had the problems myself that I couldn't find the Grails SDK to choose from when I want to select the SDK (within the Intellij Ultimate 12.0 version), but it is there, it's just hidding itself pretty well ;) *On the page where you can choose your SDK you have to choose Groovy AND Spring and voíla: you see your Grails SDK ready to be chosen (or even a Griffon SDK if you've installed it).*

like image 24
herom Avatar answered Nov 12 '22 01:11

herom