Invalid item 'grails-1.3.7' in the dependency list

Hi

I am using IntelliJ Ultimate 11.1. When I add a grails module from existing sources, I configured the "Grails" SDK as 'Grails-1.3.7'  "Project Library". After the module is created, I see the error 'Invalid item 'grails-1.3.7' in the dependency list'.
I am able to configure grails as a Module library, but not as global library or a project library.

Is this a bug? How can I create a project wide grails library. I want to add multiple grails module in the project and I want all of them to share the grails library.

Thanks
Anand

4 comments
Comment actions Permalink

Hi Anand,

Looks like a bug, but I can't reproduce it.
Try remove 'Grails-1.3.7' library and dependencies to it, then open some *.groovy file. IDEA will offer to configure Grails SDK. Press 'Configure Grails SDK' and configure it, but don't change scope of library, by default IDEA creates Global library.
Could you please attache the screenshot with module dependencies and that error?

0
Comment actions Permalink

I am attaching  the screen shot.
The problem seems to happen when you create a new project, with no modules in it. Then add a module from existing source. In one of the steps in the project import wizard, create the grails library, when asked to configure grails.
If you create a project from existing sources it seems to work fine. But I want to create an empty project and add modules to it, because I have multiple grails modules in the project. So my project structure is like this...

--- dev
    - App1
    - App2

So create the project with 'dev' as the project directory and add "App1" and "App2" as two modules in the project. Is that the right way to create a project with multiple modules?

Anand



Attachment(s):
grails.tiff
0
Comment actions Permalink

Any updates on this issue... Is this a bug or am I doing something wrong?

Thanks
Anand

0
Comment actions Permalink

It's a bug, but I can't reproduce it. I've create project as you've described, Grails library created correctly.
Do you have "grails-1.3.7" library in Project Libraries or in Global libraries after configuring Grails in wizzard?

0

Please sign in to leave a comment.