How to add grails to IntelliJ IDEA

后端 未结 4 1843
温柔的废话
温柔的废话 2020-12-28 17:59

I want to learn grails and i want to use IntelliJ IDEA and my professor said that I could connect grails to IntelliJ IDEA but i dont know how. Can you please help me with

相关标签:
4条回答
  • 2020-12-28 18:35

    Create a grails project first through grails commands. Then open idea and use the option import a grails project and point to the directory where you did the init of the grails project. Idea will do the rest.

    0 讨论(0)
  • 2020-12-28 18:43

    For an existing project, I always use:

    grails integrate-with --intellij
    

    That'll create .ipr and .iml files for you ready to open up by intellij.

    0 讨论(0)
  • 2020-12-28 18:45

    There are a couple of good pages that can help you:

    http://www.grails.org/IDEA+Integration

    http://www.jetbrains.com/idea/features/groovy_grails.html

    You can create your Grails project using Grails console and then import it into IntelliJ or you can create it directly in IntelliJ, I think it is a matter of preference since both ways work just fine.

    0 讨论(0)
  • 2020-12-28 18:51

    If you are a windows user, you might be disappointed , as at the moment (may 2016), grails support is removed from windows environment, as can be verified from here: https://blog.jetbrains.com/idea/2015/10/intellij-idea-15-eap-supports-grails-3/ As quoted "We drop the Grails tool window. We’re sorry about it"

    So, just download the latest IntelliJ IDEA 15 EAP if you are facing an issue

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