本文介绍了圣杯.弹簧安全核心.安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 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:STSLoginProject/lib/spring-security-core-[revision].zip

      C:Documents and Settingsfenuk.grails1.3.5projectsLoginProjectpluginshibernate-1.3.5/lib/spring-security-core-[revision].zip

      C:Documents and Settingsfenuk.grails1.3.5projectsLoginProjectplugins	omcat-1.3.5/lib/spring-security-core-[revision].zip

    ==== grailsHome: tried

      C:grails-1.3.5lib/spring-security-core-[revision].xml

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

      C:grails-1.3.5lib/spring-security-core-[revision].zip

    ==== grailsHome: tried

      C:grails-1.3.5dist/spring-security-core-[revision].xml

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

      C:grails-1.3.5dist/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 文件直接安装它.转到 http://grails.org/plugin/spring-security-core 并单击大下载按钮,然后通过运行从 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

你也可以不用下载就安装

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 jar,并且下载也可能失败.

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.

这篇关于圣杯.弹簧安全核心.安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 20:27