简体   繁体   English

使用Grails 2.0.0的就地插件

[英]in-place plugins with Grails 2.0.0

I'm trying to upgrade a 1.3.7 app to 2.0.0.RC1. 我正在尝试将1.3.7应用程序升级到2.0.0.RC1。 The app has a number of in-place plugins configured in BuildConfig.groovy 该应用程序在BuildConfig.groovy中配置了许多就地插件

grails.plugin.location."iris-licensing-plugin" = "${basedir}/../plugins/iris-licensing-plugin"
grails.plugin.location."ivdash" = "${basedir}/../plugins/ivdash"
grails.plugin.location."ivsecurity" = "${basedir}/../plugins/ivsecurity"
grails.plugin.location."ivmodel" = "${basedir}/../plugins/ivmodel"
grails.plugin.location."ivquery" = "${basedir}/../plugins/ivquery"

I ran "grails upgrade" on all these plugins, then ran "grails run-app" on the main app and got the following error: 我在所有这些插件上运行“grails升级”,然后在主应用程序上运行“grails run-app”并收到以下错误:

Packaging Grails application 包装Grails应用程序

Error Plugin [ivmodel] is aliased as [grails.plugin.location.ivmodel] to the location [C:\\workspace\\fuse-view\\fuse-view-web/../plugins/ivmodel] in grails-app/conf/BuildConfig.groovy. 错误插件[ivmodel]被别名为[grails.plugin.location.ivmodel]到grails-app / conf /中的位置[C:\\ workspace \\ fuse-view \\ fuse-view-web /../ plugins / ivmodel] BuildConfig.groovy。

You cannot upgrade a plugin that is configured via BuildConfig.groovy, remove the configuration to continue. 您无法升级通过BuildConfig.groovy配置的插件,请删除配置以继续。

Any idea what the problem is here? 知道这里的问题是什么吗?

I think some dependencies are missed after grails 2.0 migration. 我认为grails 2.0迁移后会遗漏一些依赖项。 Check repository urls for dependencies. 检查存储库URL以查找依赖项。 Do not forget about grails recommendations 不要忘记grails建议

It appears you are experiencing this issue . 您似乎遇到了此问题 I'm sorry to say I don't know how you can resolve it, but perhaps a trivial rename of each inline plugin will cause them to be treated 'fresh' by the build system, and avoid the need to nuke and pave? 我很遗憾地说我不知道​​如何解决它,但是对每个内联插件进行一次微不足道的重命名都会导致它们被构建系统处理为“新鲜”,并避免需要进行核武器和铺设?

Also make sure your plugins are only defined in the grails.plugin.location lines. 还要确保您的插件仅在grails.plugin.location行中定义。 Double check application.properties and that they are not in BuildConfig.groovy plugins{} block either 仔细检查application.properties并且它们不在BuildConfig.groovy plugins {}块中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM