Hi,
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?
Cheers, Don