How to add grails to IntelliJ IDEA

2019-02-02 09:32发布

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 clear steps on how to do so?

Thanks

4条回答
迷人小祖宗
2楼-- · 2019-02-02 09:59

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.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-02-02 09:59

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.

查看更多
聊天终结者
4楼-- · 2019-02-02 10:03

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.

查看更多
▲ chillily
5楼-- · 2019-02-02 10:19

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

查看更多
登录 后发表回答