1

github から Spring Security のソースをチェックアウトし、samples ディレクトリ (samples ディレクトリにはcontacts-xml という名前のサブディレクトリがあります) で「contacts」の例を実行したいので、http://docs に従ってメソッドを試しました。 spring.io/spring-security/site/build.html、コマンドでcasデモを正常に実行しました

グラドルキャス

そしてそれは動作します。

しかし、私が試したとき

gradle jettyRun

contact-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**

私は何かが恋しいですか?

4

1 に答える 1

0

ドキュメントには、特定のサブディレクトリに移動する必要があると記載されています。

cd samples/contacts

于 2013-10-17T13:11:38.903 に答える