gpt4 book ai didi

java - 如何从 spring-security 源代码构建示例

转载 作者:行者123 更新时间:2023-12-01 04:16:28 26 4
gpt4 key购买 nike

我从github上查看了spring security的源码,我想运行samples目录中的“contacts”示例(samples目录有一个名为contacts-xml的子目录),我尝试了按照http://docs.spring.io/spring-security/site/build.html的方法,我通过命令成功运行了cas demo

gradlew cas

并且它有效。

但是当我尝试

gradle jettyRun

在contacts-xml目录中,我收到一条错误消息

nine@nine:~/codes/spring-security/samples/contacts-xml$ gradle jettyRun
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes
:buildSrc:jar
:buildSrc:assemble
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
The Test.testResultsDir property has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the Test.getReports().getJunitXml().setDestination() property instead.
The Test.testReportDir property has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the Test.getReports().getHtml().getDestination() property instead.
'appEngineSdkRoot' must be set in gradle.properties
2013-10-15 10:01:59.832:INFO::Logging to STDERR via org.mortbay.log.StdErrLog

FAILURE: Could not determine which tasks to execute.

* What went wrong:
**Task 'jettyRun' not found in project ':spring-security-samples-contacts-xml'.**

* Try:
Run gradle tasks to get a list of available tasks.

**BUILD FAILED**

我错过了什么吗?

最佳答案

文档说您需要导航到特定的子目录:

cd 样本/联系人

关于java - 如何从 spring-security 源代码构建示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19372288/

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