IntelliJ 12 Grails 2.1 Configuration - Grails SDK not configured

后端 未结 7 1787
盖世英雄少女心
盖世英雄少女心 2020-12-24 02:19

I feel like I\'m missing something simple at this point. I upgraded to grails 2.1.1 from 1.3.7 while running IntelliJ 10, recently I upgraded to IntelliJ 12 and imported al

相关标签:
7条回答
  • 2020-12-24 02:41

    You do not have to create a new project.

    Had the same problem, and it took me quite some search to resolve it:

    • right click your Grails module
    • click "Add framework support"
    • select "Groovy"
    • The dropdown next to "Use library" will allow you to choose a grails library.
    • If the dropdown is empty press "create" and choose your grails library directory.
    • Grails SDK is configured then

    Add framework support

    select grails library

    0 讨论(0)
  • 2020-12-24 02:41

    With Intellij 16 right click on your project in the right hand project pane.

    Choose Grails->Configure Grails SDK.

    If you're using the grails wrapper I would point to that SDK:

    /Users/your user/.grails/wrapper/2.5.2/grails-2.5.2

    0 讨论(0)
  • 2020-12-24 02:41

    I found a symlink that points to the latest version in:

    ~/.sdkman/candidates/grails/current

    I'm using SDKMAN 4.0.37

    Pointing Intellij at that location will allow you to switch versions using sdkman.

    0 讨论(0)
  • 2020-12-24 02:45

    I am working with IntelliJ 12.0.1 ultimate. I have installed Grails 2.3.1 on my computer, but always got errors when trying to specify it as a Grails SDK- "failed to create library. Looks like Grails distribution in specified path is broken. Cannot determine version." I tried with Grails 2.3.0, but got the same error. Then, I tried my luck with Grails 2.2.4, and I could finally get it work.

    0 讨论(0)
  • 2020-12-24 02:46

    I have the IntelliJ 12 too, to run app i just click in 'File' -> 'Create Project', select 'Grails Projectenter image description here'

    Click Next,

    enter image description here

    Click em Create, select the folder, who contain the Grails 2, and Voila. :-)

    If you has the project before, run in project 'grails integrate-with --intellij' or run import project, and create a Grails SDK

    0 讨论(0)
  • 2020-12-24 02:46

    Not really an "answer" here, but after seeing similar troubles with IDEA I went ahead and just created a new project and copied my source in and resolved my issues, if not solving the actual problem.

    0 讨论(0)
提交回复
热议问题