gpt4 book ai didi

grails - 添加Spring安全性插件时找不到脚本 'S2Quickstart'

转载 作者:行者123 更新时间:2023-12-02 14:14:04 24 4
gpt4 key购买 nike

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

$ grails install-plugin spring-security-core

$ grails s2-quickstart org.example.auth Person Authority

当我输入以上命令时,我得到的是:
| 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

我该如何解决?

更新
| 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.

最佳答案

因为您正在使用2.3.4
不建议安装插件

这是你在做什么

步骤1:打开BuilConfig.groovy

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

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

repositories {
mavenRepo "http://repo.spring.io/milestone/"
}

第3步:在插件代码段中添加此行
compile ":spring-security-core:2.0-RC2"

plugins {
compile ':spring-security-core:2.0-RC2'
}

步骤4:执行命令
grails compile

步骤5:执行命令
s2-quickstart

你完成了

关于grails - 添加Spring安全性插件时找不到脚本 'S2Quickstart',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20975517/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com