Grails - Maven在IntellJ Idea上安装Spring Security Plugin 3.0.4时出错

时间:2016-04-14 16:43:55

标签: java maven grails intellij-idea grails-plugin

我在将Spring Security Core 3.0.4插件安装到Grails 3.1.5项目中时遇到问题。我在这里使用的是:

Grails:3.1.5

IntellJ Idea:Ultimate 2016.1.1

Maven:3.0.5

build.gradle中,我有:

buildscript {
    ...
    repositories {
        mavenLocal()
        maven { url "https://repo.grails.org/grails/core" }
    }
    ...
}
...
dependencies {
    compile "org.grails.plugins:spring-security-core:3.0.4"
    ...
}

当我做"工具" > " Grails的" > "同步Grails设置",我收到此错误:

Configuring > 1/1 projects| Error Error initializing classpath: Could not find spring-security-core.zip (org.grails.plugins:spring-security-core:3.0.4).
Searched in the following locations:
https://repo.grails.org/grails/core/org/grails/plugins/spring-security-core/3.0.4/spring-security-core-3.0.4.zip (Use --stacktrace to see the full trace)

因此,出于某种原因,它正在寻找.zip文件。但是,查看目录https://repo.grails.org/grails/core/org/grails/plugins/spring-security-core/3.0.4/,其中没有.zip文件。有关如何解决这个问题的任何线索?谢谢!

1 个答案:

答案 0 :(得分:0)

您可以尝试新版Spring Security,例如:

compile 'org.springframework.security:spring-security-core:3.2.9.RELEASE'