【问题标题】:Grails 1.2.0 not finding plugins in the default repositoryGrails 1.2.0 在默认存储库中找不到插件
【发布时间】:2011-02-13 08:22:58
【问题描述】:

我不知道我的环境发生了什么变化,但突然之间我无法从默认存储库中提取任何插件。我浏览了 _*.groovy 脚本,我的 grails 主目录中没有任何变化,而且默认存储库 url 似乎设置正确(DEFAULT_PLUGIN_DIST = "http://plugins.grails.org")。

我假设这是一个环境设置改变了我,因为如果我切换到我安装的旧版本的 grails,例如 1.1.1,list-plugins 将返回完整的插件列表。

当我在当前 1.2.0 环境中运行 grails list-plugins 时,我得到以下输出:

欢迎使用 Grails 1.2.0 - http://grails.org/ 根据 Apache 标准许可证 2.0 获得许可 Grails 主页设置为:/opt/grails-1.2.0

基本目录:/Users/padraic/Projects/TestApplicationMachine 解决依赖关系... 依赖关系在 1633 毫秒内解决。 运行脚本 /opt/grails-1.2.0/scripts/ListPlugins_.groovy 环境设置为开发 读取远程插件列表...

核心存储库中可用的插件如下:

hibernate -- Grails 的休眠 tomcat -- 用于 Grails 的 Apache Tomcat 插件 webflow -- Spring Web Flow 插件

正在读取远程插件列表...

下面列出了默认存储库中可用的插件:

spock -- Spock 集成 - spockframework.org

您当前安装的插件如下:

cloud-foundry 0.2 -- 适用于 Grails 的 Cloud Foundry 插件 hibernate 1.2.0——Grails 的休眠 tomcat 1.2.0 -- 用于 Grails 的 Apache Tomcat 插件

我觉得很奇怪,它只找到 spock 插件。这让我觉得要么 a) 它进入了错误的存储库,要么 b) 我的版本设置不正确。

有什么想法吗?

谢谢, 帕德雷克

【问题讨论】:

    标签: grails grails-plugin


    【解决方案1】:

    Spock 插件的发布损坏了存储库中包含所有插件信息的元数据 XML 文件。此问题已修复,但您必须在本地拥有缓存副本。这将在 $HOME/.grails/1.2.0 - 删除 plugins-list-core.xml 和 plugins-list-default.xml 并且当您运行“grails list-plugins”或“grails install”时它们将被重新下载-plugin foo"。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-21
      • 2021-08-25
      • 1970-01-01
      • 2016-04-11
      • 2014-08-10
      • 1970-01-01
      • 2011-03-08
      • 1970-01-01
      相关资源
      最近更新 更多