I'm using IntelliJ 8.1.2 on Windows to develop a Grails 1.1 project that depends on internally developed plugins which are not available in the central Grails plugin repo. In Grails 1.1 the default location of installed plugins was moved from $PROJECT_ROOT/plugins to $HOME/.grails/1.1/$PROJECT/plugins
Using the command-line, I've installed my plugins to the default location. My IntelliJ project contains the main Grails application as a module, and in order for IntelliJ to be able to find the plugins on which the main app depends, I've added $HOME/.grails/1.1/$PROJECT/plugins as a content root and specified which are the source folders within this location.
The project builds, and I can run the tests with the IDE, but the problem I have is that the plugin projects are not setup as modules within the project - remember, it's the installed location of the plugins that's setup as a content root. So as things currently stand, if I need to change a plugin I have to do so outside the IDE, and re-install the plugin via the command-line. What I would ideally like is for the main Grails app and the plugins to be setup as modules within an IntelliJ project, but the main Grails app references the plugins from their installed location. This would enable me to change the plugins or the main app within the IDE, but the versions of the plugins that the main app depends on within the IDE would be the same as on the command-line (i.e. those in $HOME/.grails/1.1/$PROJECT/plugins). Is there any way I can achieve this setup?
Also, I saw in another thread that there is a major problem with Grails integration in IntelliJ 8.1.2 on Windows, what exactly is this problem, and which version should I use instead (if it affects me)?
By the way, when running the tests from the command-line, I noticed that about 15% more tests fail compared to when I run them within the IDE. I realise I haven't provided much context, so don't really expect an answer, but I'm just wondering if anyone could guess why this is?
Finally, I ran my Grails tests as JUnit tests (instead of Grails tests) just to see what would happen. But now every time I run them, it runs them as JUnit tests without prompting, how can I switch back to running them as Grails tests?
Thanks in advance,