grails install-plugin 对我不起作用
当我在窗口命令行中运行“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只是一个小提示,但您也可以从本地文件系统的 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.
进入项目的 BuildConfig.groovy
找到 repositiories 部分:
repositories {
grails插件()
grailsHome()
grailsCentral()
}
搜索
mavenCentral()
。取消注释该行。这将启用远程依赖解析。
然后在命令行上尝试
install-plugin
命令。这是一个示例:
或者
如果在命令行上运行 install-plugin 不起作用,您可以尝试插件管理器。
右键单击您的项目 -> Grails 工具(向底部)-> Grails 插件管理器。
搜索您的插件,然后安装并单击“确定”按钮。
Go into your project's BuildConfig.groovy
Find the repositiories section:
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
}
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:
or
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.
如果您必须使用代理连接到互联网,请尝试以下操作:
http://grails.org/doc/latest/ref/Command%20Line/add-proxy.html
http://grails.org/doc/latest/ref/Command %20Line/set-proxy.html
If You have to use Proxy to connect to the Internet, try this:
http://grails.org/doc/latest/ref/Command%20Line/add-proxy.html
http://grails.org/doc/latest/ref/Command%20Line/set-proxy.html