问题描述
我尝试在Grails中安装Spring安全核心插件。
我运行这个命令:
I try install Spring security core plugin in Grails.I run this command:
grails install-plugin spring-security-core
结果我看到这个错误信息:
and in result i see this error message:
:: problems summary ::
:::: WARNINGS
module not found: org.grails.plugins#spring-security-core;latest.integration
==== grailsPlugins: tried
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\STS\LoginProject/lib/spring-security-core-[revision].zip
C:\Documents and Settings\fenuk\.grails\1.3.5\projects\LoginProject\plugins\hibernate-1.3.5/lib/spring-security-core-[revision].zip
C:\Documents and Settings\fenuk\.grails\1.3.5\projects\LoginProject\plugins\tomcat-1.3.5/lib/spring-security-core-[revision].zip
==== grailsHome: tried
C:\grails-1.3.5\lib/spring-security-core-[revision].xml
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\grails-1.3.5\lib/spring-security-core-[revision].zip
==== grailsHome: tried
C:\grails-1.3.5\dist/spring-security-core-[revision].xml
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\grails-1.3.5\dist/spring-security-core-[revision].zip
==== grailsHome: tried
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\grails-1.3.5/plugins/grails-spring-security-core-[revision].zip
==== 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
::::::::::::::::::::::::::::::::::::::::::::::
Error resolving plugin [name:spring-security-core, group:org.grails.plugins, version:latest.integration].
Plugin not found for name [spring-security-core] and version [not specified]
这个错误是什么意思?或许,我做错了什么?
what this error mean? maybe, i do something wrong?
推荐答案
确保BuildConfig.groovy中至少有三个核心存储库:
Make sure that you have at least the three core repositories in BuildConfig.groovy:
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
}
作为临时解决方法,您可以通过下载zip文件直接安装它。转至并点击下载大按钮,然后通过运行
As a temporary workaround, you can install it directly by downloading the zip file. Go to http://grails.org/plugin/spring-security-core and click the big Download button, then install from the zip by running
grails install-plugin path/to/grails-spring-security-core-1.0.1.zip
您也可以使用 $ b进行安装而无需下载
$ b
You can also install it without downloading using
grails install-plugin http://plugins.grails.org/grails-spring-security-core/tags/RELEASE_1_0_1/grails-spring-security-core-1.0.1.zip
但是我怀疑你有网络问题,所以安装插件因为它使用Ivy来解决所需的Spring Security jars,并且下载也可能失败。
But I suspect you have a network issue, so the plugin install will fail since it uses Ivy to resolve the required Spring Security jars, and that download may also fail.
这篇关于Grails的。弹簧安全核心。安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!