PDA

View Full Version : compilation failure / inplace plugin issue



cdaoust
Oct 8th, 2010, 08:54 AM
When running grails generate-views or test-app or run-app on a project that has a reference to an local/inplace plugin project compilation fails.

Setup is the following - App project has inplace reference to plugin project which in turn makes use of some installed plugins (in this case security core).

when executing the grails commands mentioned at top, compilation fails in the inplace plugin classes. Compiler fails to resolve dependencies within the inplace plugin project to the core security plugin classes. They are there in grails dependencies for the inplace plugin project.

Is this a bug? Seems that is this is by design it makes the use of inplace plugin project references messy.

thanks for any help,
Claude

pledbrook
Oct 19th, 2010, 05:15 AM
This is a limitation of in-place plugins. You should either make Spring Security Core an in-place plugin, or it appears you can declare it as a plugin dependency in your plugin's BuildConfig.groovy.

cdaoust
Oct 19th, 2010, 08:21 AM
Expressing the plugin dependency in buildConfig did the trick for running the app project in place - I no longer have any dependency from my app project to the security plugin.

This is a big improvement as other plugins such as hibernate only need to be expressed as a dependency in the plugin project.

Thanks Peter!