1

grails list-plugin使用 grails 2.0.1运行时出现下一个错误。

我不在代理后面。

| Environment set to development.....
ApacheURLLister found URL=[http://plugins.grails.org/Community].
ApacheURLLister found URL=[http://plugins.grails.org/plugins].
ApacheURLLister found URL=[http://plugins.grails.org/Documentation].
ApacheURLLister found URL=[http://plugins.grails.org/all].
ApacheURLLister found URL=[http://plugins.grails.org/featured].
ApacheURLLister found URL=[http://plugins.grails.org/newest].
ApacheURLLister found URL=[http://plugins.grails.org/supported].
ApacheURLLister found URL=[http://plugins.grails.org/forum].
| Error No plugins found in repository: grailsCentral. This may be because the repository is behind an HTTP proxy.

我最近在尝试安装 cloud-foundry 插件时将 gem 更新到版本 1.8.17

调试步骤

我尝试了以下但没有成功。

  • 删除了我的 $HOME/.grails 文件夹
  • 删除我的 GRAILS_HOME 文件夹并下载 grails 2.0.1 并再次安装。
  • 我试图从 were 创建一个应用程序。同样的错误:

    $ grails create-app dummyapp

    | 在 /Users/sdelamo/Developer/grails/dummyapp 创建 Grails 应用程序

    $ cd 虚拟应用程序/

    $ grails 列表插件

    | 环境设置为开发......

    | 错误在存储库中找不到插件:grailsCentral。这可能是因为存储库位于 HTTP 代理之后。

我之前在同一台机器上使用过 grails 2.0.1 没有任何问题。

4

2 回答 2

2

截至 5 月 22 日,如果您不知道,从 3 月开始的回购行动似乎很棘手。见Graeme Rocher 的帖子

具体来说,这对我有用:

repositories { 
...
// grailsPlugins()
grailsRepo "http://grails.org/plugins" 
...
} 
于 2012-05-23T17:20:54.310 回答
1

这是我们将 grails.org 站点切换到新服务器时发生的临时错误配置。不过现在已经修好了。

于 2012-03-07T20:38:18.837 回答