添加Spring安全插件时未找到脚本'S2Quickstart'

sha*_*Hwk 1 grails

我键入以下命令来添加Spring security plugin.

$ grails install-plugin spring-security-core

$ grails s2-quickstart org.example.auth Person Authority
Run Code Online (Sandbox Code Playgroud)

当我输入上面的命令时,我得到的是:

| Script 'S2Quickstart' not found, did you mean:
   1) Stats
   2) DbmListLocks
   3) InstallJQuery
   4) TestApp
   5) DbmClearChecksums
> Please make a selection or enter Q to quit: q
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?

UPDATE

| Configuring classpath
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.springframework.security:spring-security-core:jar:3.2.0.RC1, org.springframework.security:spring-security-web:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-core:jar:3.2.0.RC1 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.springframework.security:spring-security-core:jar:3.2.0.RC1, org.springframework.security:spring-security-web:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-core:jar:3.2.0.RC1 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.springframework.security:spring-security-core:jar:3.2.0.RC1, org.springframework.security:spring-security-web:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-core:jar:3.2.0.RC1 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
| Error The following artifacts could not be resolved: org.springframework.security:spring-security-core:jar:3.2.0.RC1, org.springframework.security:spring-security-web:jar:3.2.0.RC1: Could not find artifact org.springframework.security:spring-security-core:jar:3.2.0.RC1 in grailsCentral (http://repo.grails.org/grails/plugins)
| Run 'grails dependency-report' for further information.
Run Code Online (Sandbox Code Playgroud)

Hus*_*ri' 10

因为你正在使用2.3.4 install-plugin已被弃用

这是你做的

第1步:打开BuilConfig.groovy

第2步:在存储库中添加此行

mavenRepo "http://repo.spring.io/milestone/"

repositories {
        mavenRepo "http://repo.spring.io/milestone/"
    }
Run Code Online (Sandbox Code Playgroud)

第3步:在插件片段中添加此行

compile ":spring-security-core:2.0-RC2"

plugins {
    compile ':spring-security-core:2.0-RC2'
}
Run Code Online (Sandbox Code Playgroud)

第4步:执行命令

grails compile
Run Code Online (Sandbox Code Playgroud)

第5步:执行命令

s2-quickstart
Run Code Online (Sandbox Code Playgroud)

你完成了