When I copy my app to a different machine and do ‘grails run-app’ grails seems to skip a step as far as updating its local plugins. (What I mean is the first computer has just done Downloading: plugins-list.xml, but when I run the app on the second machine, the new machine will not do that step.) I get this message:
Loading Grails 2.0.3
Configuring classpath
Environment set to development.....
Packaging Grails application
You currently already have a version of the plugin installed [resources-1.1.6]. Do you want to update to [resources-1.1.5]? [y,n] n
Plugin resources-1.1.5 install aborted
Compiling 92 source files
Am I diagnosing this correctly, and how do I force an update? Also, if I do accept the downgrade my app breaks. Not sure whats up with that as it was working with 1.1.5 for a while..
What I feel like is happening is that grails makes a note in the project when grails’ plugin magic was last updated, so that when I move the project the other grails mistakenly thinks it just updated. Is this at all correct?
Are you specifying your plugins in your
BuildConfig.groovyfile or are you “installing” the plugins using theinstall-plugincommand? My reading indicates usage of theinstall-plugincommand isn’t recommended anymore, you should instead specify the plugin as in yourBuildConfig.groovyfile then Grails will just handle it regardless of what machine you deploy on.Example:
Note too that some plugins also require a special entry in the
dependenciessection of yourBuildConfig.groovyfile. TheJodaTimeplugin is one such plugin.A plugin’s docs should specify if any entry in the
dependenciessection is needed.