【问题标题】:Error: The following plugins failed to load due to missing dependencies:错误:由于缺少依赖项,以下插件无法加载:
【发布时间】:2016-03-08 06:05:56
【问题描述】:
  1. 我更新了一个插件以使用 cxf 2.0.3 - 之前该插件使用的是 cxf 1.4.7。

以下是插件的更新构建配置。

plugins {
    // starting with Grails 2.3 the tomcat plugin is not updated/released along with Grails, so hard code version
    build(":tomcat:2.2.5",
            ":release:2.2.1",) {
        export = false
    }

    compile ":cxf-client:2.0.3"
}
  1. 当我的应用程序尝试加载插件时,我收到以下错误。 我尝试在现有项目和新项目上使用该插件,但仍然出现错误。
|加载 Grails 2.5.3 |配置类路径 . |环境开始发展 ................................... |打包 Grails 应用程序 …… |编译1个源文件 ..................................................... ........错误 | 错误:由于缺少依赖项,以下插件无法加载:[msApi] - 插件:msApi - 依赖关系: ! cxf-client(必需:1.4.7,找到:2.0.3)[无效] 进程以退出代码 1 结束
  1. 我需要删除一些缓存文件吗?

【问题讨论】:

    标签: grails


    【解决方案1】:

    在整个插件项目 f.e. 中搜索字符串:“1.4.7”。通过grep -rn "1.4.7",您将在项目中找到该字符串的所有出现(然后您将决定更改它或从结果中删除这样的文件)。

    【讨论】:

    • 感谢您的回复。我在更新到 2.0.3 的以下文件中找到了 1.4.7。 MsApiGrailsPlugin.groovy: def dependsOn = ['cxf-client' : "1.4.7"] plugin.xml:
    猜你喜欢
    • 2018-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-23
    • 1970-01-01
    • 1970-01-01
    • 2018-11-10
    • 2020-12-09
    相关资源
    最近更新 更多