groovydev/twitter-bootstrap-grails-plugin — Issue #4: Error after installing
Author: bobbywarner
Created: 2011-10-10 20:59:54+00:00
State: open

The resources framework throws an error after installing this plugin. There is a workaround, but hopefully this issue can be resolved so the workaround is no longer needed. Please let me know, thanks Bobby!

Error 2011-09-30 14:20:35,655 [Thread-10] ERROR LesscssResourceMapper
error compiling less file: .grails/2.0.0.M2/projects/sampleapp/tomcat/work/Tomcat/localhost/sampleapp/grails-resources/plugins/twitter-bootstrap-0.3.1/css/bootstrap.less

Error 2011-09-30 14:20:35,686 [Thread-10] ERROR plugins.DefaultGrailsPluginManager
Error configuring dynamic methods for plugin [resources:1.0.2]: Skipping prepare resource for [/plugins/twitter-bootstrap-0.3.1/css/bootstrap.less] - This resource is declared in module [bootstrap-less] as well as module [bootstrap]

This can be resolved by doing this:
bootstrap {
if (configTagLib) {
dependsOn 'bootstrap-fixtaglib'
}
resource url:[plugin: 'twitter-bootstrap', dir: 'css', file: (dev ? cssFile : cssminFile)], attrs:attrs, disposition: 'head', exclude:'minify', bundle: 'bundle_bootstrap'
}

http://grails.1312388.n4.nabble.com/Twitter-Bootstrap-Plugin-Error-td3860925.html