Importing Grails project not recognised as Grails
Answered
I'm trying to import an exiting grails project into IntelliJ (V2016.3.3) from a subversion repository.
The code imports fine from the SVN repo, but during the import there's no option to select it as a grails project, nor can I see how to add grails to the project after the import is complete.
How can I tell IntelliJ that this really is a grails project?
Please sign in to leave a comment.
What Grails version is used in a project? Is it Gradle based?
It's grails 1.3.9.
See https://www.jetbrains.com/help/idea/2016.3/creating-grails-application-from-existing-code.html.
Try creating a new Grails project so that IDE helps you configure a library from the Grails home directory.
Once the library is created, make it a global library instead of the project library.
Then in your existing project add the global library to the module dependencies (http://www.jetbrains.com/idea/webhelp/configuring-module-dependencies-and-libraries.html).
See the related discussion for details: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000010924-Unable-to-import-Grails-project.
I've done that. All I get now is a Spring toolbar :-(
Do you mind sending us some screenshots so we can investigate and get back to you with the solution that would help you achieve your task?
Sure. Tell me what you want and where you want me to send them. If it's easier, we can do a Webex.
You can send everything to Elena.Kozlova@jetbrains.com and maybe we can start with the wizard screenshots, especially the ones that appear after you select "Create project from existing sources" and click Next. When the project is imported and the indexing is completed if you don't receive any pop-up messages, please send me a screenshot of the Project Structure page where we can check out for dependencies. Thanks)