Setting up grails project in Intellij

20,107

Solution 1

Check is Grails plugin installed.

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

Create SDK from there ...

Solution 2

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).*

Share:
20,107
Chapsterj
Author by

Chapsterj

Updated on January 04, 2020

Comments

  • Chapsterj
    Chapsterj over 4 years

    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.

  • Chapsterj
    Chapsterj almost 12 years
    Where is projects. I only have File > new Project > create project from existing source. I already have a project source I just want to setup that project in my IDEA with a working SDK
  • Chapsterj
    Chapsterj almost 12 years
    Ok I'm starting to feel really stupid now. How hard can it be to install a grails SDK.
  • Chapsterj
    Chapsterj almost 12 years
    Here is where I'm at. file > new Project > Create project from existing source. click next > I name my project set my path > Click Next select SDK there is no grails SDK. I'm trying to find out how or where I can get my grails SDK.
  • Kirschbaum
    Kirschbaum over 11 years
    My only regret is that I have but one upvote to give. Thank you!