grails install-plugin 对我不起作用

发布于 2024-12-11 18:53:57 字数 2121 浏览 0 评论 0原文

当我在窗口命令行中运行“grails install spring-security-core 1.2.4”时,我收到一个非常奇怪的错误

            ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

            :: org.grails.plugins#spring-security-core;1.2.4: not found

            ::::::::::::::::::::::::::::::::::::::::::::::

:::: 错误 服务器访问错误:权限被拒绝:连接 url=http://svn.codehaus.org/grails-plugins/grails-spring-security-core/tags/RELEASE_1_2_4/grails-spring-security-core-1.2.4.zip

    Server access Error: Permission denied: connect url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-spring-security-core/tags/RELEASE_1_2_4/grails-spring-security-core-1.2.4.zip

错误正在解析插件 [名称:spring-security-core,组:org.grails.plugins,版本:1.2.4]。 找不到名称 [spring-security-core] 和版本 [1.2.4] 的插件

奇怪的是,我可以通过提供 url 来下载 zip 文件(http://svn.codehaus.org/grails-plugins/grails-spring-security -core/tags/RELEASE_1_2_4/grails-spring-security-core-1.2.4.zip) 在我的浏览器中。

有人遇到过同样的问题吗?

如果我在命令行中省略版本号,我会看到 url 字符串完全错误:

 ==== grailsCentral:尝试过
    -- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:

    http://svn.codehaus.org/grails-plugins/grails-spring-security-core/tags/LATEST_RELEASE/grails-spring-security-core-[revision].zip

  ==== grailsCore: tried

    -- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:

    http://svn.codehaus.org/grails/trunk/grails-plugins/grails-spring-security-core/tags/LATEST_RELEASE/grails-spring-security-core-[revision].zip

          ::::::::::::::::::::::::::::::::::::::::::::::

          ::          UNRESOLVED DEPENDENCIES         ::

          ::::::::::::::::::::::::::::::::::::::::::::::

          :: org.grails.plugins#spring-security-core;latest.integration: not found

          ::::::::::::::::::::::::::::::::::::::::::::::

顺便说一下,我使用的是 Grails 1.3.7。谢谢!!

I received a very odd error when I run 'grails install spring-security-core 1.2.4'in my window's command line

            ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

            :: org.grails.plugins#spring-security-core;1.2.4: not found

            ::::::::::::::::::::::::::::::::::::::::::::::

:::: ERRORS
Server access Error: Permission denied: connect url=http://svn.codehaus.org/grails-plugins/grails-spring-security-core/tags/RELEASE_1_2_4/grails-spring-security-core-1.2.4.zip

    Server access Error: Permission denied: connect url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-spring-security-core/tags/RELEASE_1_2_4/grails-spring-security-core-1.2.4.zip

Error resolving plugin [name:spring-security-core, group:org.grails.plugins, version:1.2.4].
Plugin not found for name [spring-security-core] and version [1.2.4]

Strangely I can download the zip file by providing the url (http://svn.codehaus.org/grails-plugins/grails-spring-security-core/tags/RELEASE_1_2_4/grails-spring-security-core-1.2.4.zip) in my browser.

Anybody experienced same issue?

If I omit the version number in the command line, I see the url string is totally wrong:

  ==== grailsCentral: tried
    -- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:

    http://svn.codehaus.org/grails-plugins/grails-spring-security-core/tags/LATEST_RELEASE/grails-spring-security-core-[revision].zip

  ==== grailsCore: tried

    -- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:

    http://svn.codehaus.org/grails/trunk/grails-plugins/grails-spring-security-core/tags/LATEST_RELEASE/grails-spring-security-core-[revision].zip

          ::::::::::::::::::::::::::::::::::::::::::::::

          ::          UNRESOLVED DEPENDENCIES         ::

          ::::::::::::::::::::::::::::::::::::::::::::::

          :: org.grails.plugins#spring-security-core;latest.integration: not found

          ::::::::::::::::::::::::::::::::::::::::::::::

By the way, I am using Grails 1.3.7. Thanks!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

无敌元气妹 2024-12-18 18:53:57

只是一个小提示,但您也可以从本地文件系统的 zip 文件安装插件......因为您已经拥有它。

grails install-plugin ../my-plugin-0.1.zip

Just a small tip but you can also install plugin from a zip file from your local file system ... since you already have it.

grails install-plugin ../my-plugin-0.1.zip
倦话 2024-12-18 18:53:57

进入项目的 BuildConfig.groovy

/[Your_Project_Name]/grails-app/conf/BuildConfig.groovy

找到 repositiories 部分:

repositories {
grails插件()
grailsHome()
grailsCentral()

// uncomment the below to enable remote dependency resolution
// from public Maven repositories
//mavenLocal()
mavenCentral()
//mavenRepo "http://snapshots.repository.codehaus.org"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"

}

搜索 mavenCentral()
取消注释该行。这将启用远程依赖解析。

然后在命令行上尝试 install-plugin 命令。

这是一个示例:

install-plugin mail

或者

install-plugin http://plugins.grails.org/grails-mail/tags/RELEASE_1_0-SNAPSHOT/grails-mail-1.0-SNAPSHOT.zip 

如果在命令行上运行 install-plugin 不起作用,您可以尝试插件管理器。

右键单击您的项目 -> Grails 工具(向底部)-> Grails 插件管理器。

搜索您的插件,然后安装并单击“确定”按钮。

Go into your project's BuildConfig.groovy

/[Your_Project_Name]/grails-app/conf/BuildConfig.groovy

Find the repositiories section:

repositories {
grailsPlugins()
grailsHome()
grailsCentral()

// uncomment the below to enable remote dependency resolution
// from public Maven repositories
//mavenLocal()
mavenCentral()
//mavenRepo "http://snapshots.repository.codehaus.org"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"

}

Search for mavenCentral().
Uncomment this line out. This will then enable remote dependency resolution.

Then try the install-plugin command on the command line.

Here is an example:

install-plugin mail

or

install-plugin http://plugins.grails.org/grails-mail/tags/RELEASE_1_0-SNAPSHOT/grails-mail-1.0-SNAPSHOT.zip 

If running install-plugin on the command line does not work for you, you can try the plugin manager.

Right-click your project -> Grails Tools(Towards the bottom) -> Grails Plugin Manager.

Search for your plugin then install and click the OK button.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文