grails with spring-security-core plugin doesn't compile

I've been trying out the grails framework with the new idea and everything has gone well until I stalled the spring-security-core grails plugin. The plugin and project work fine when using grails compile/run-app/etc, however intellij idea (9) is no longer able to "make" the project, giving me an errors:

Steps:

1. grails create-app my-app grails
2. install-plugin spring-security-core
3. import my-app as a grails project
4. click make

This produces errors similar to the following...

$HOME\.grails\1.3.6\projects\macs\plugins\spring-security-core-1.1\src\java\org\codehaus\groovy\grails\plugins\springsecurity\IpAddressFilter.java
cannot find symbol variable ReflectionUtils

This error is repeated for several java class files that reference the ReflectionUtils groovy class file
org.codehaus.groovy.grails.plugins.springsecurity.ReflectionUtils which is in the same package, but found in the spring-security-core/src/groovy directory (as opposed to spring-security-core/src/java)

The IDE source parser seems to resolve things correctly, as there are no red marks littering the file, and the navigation finds the files correctly, but the "project make" is listing references to this groovy class from java classes as "can not find symbol" errors.

Does anyone have any advice on how to get the idea IDE to "make" the project without these invalid errors?

I tried changing the order of the plugin sources, and moving to idea 10, but these made no difference, and I can't think of anything else to try.

3 comments
Comment actions Permalink

Do anyone have a vote on bug vs. configuration issue?

0
Comment actions Permalink

Sorry for the delay.
I cannot reproduce this issue. On my machine IDEA compiles successfully.
Try to remove all caches (%USER_HOME%/.IntelliJIdea10)

0
Comment actions Permalink

I am having the same problem with Grails 2.0.4 and IDEA 11.1.3. I just upgraded to the latest IDEA. Before that, I had no compilation issues.

0

Please sign in to leave a comment.