gpt4 book ai didi

java - 等级: "Could not determine which tasks to execute."

转载 作者:行者123 更新时间:2023-12-02 08:30:29 28 4
gpt4 key购买 nike

我收到了以下 gradle 构建文件 (gae.gradle),其中包含来自 SpringSource 的示例项目,但是当我尝试使用 gradle 运行它时:

gradle gae

它生成错误:

FAILURE: Could not determine which tasks to execute.

这是一个格式正确的 gradle 文件还是我做错了什么?

我是否应该使用 Maven 来运行它?

apply plugin: 'war'
apply plugin: 'jetty'
apply plugin: 'gae'

gaeVersion="1.3.5"

repositories {
// Hibernate Validator
mavenRepo name: 'JBoss', urls: 'https://repository.jboss.org/nexus/content/repositories/releases'
// GAE Jars
mavenRepo name: 'GAE', urls:'http://maven-gae-plugin.googlecode.com/svn/repository'
}

// Remove logback as it causes security issues with GAE.
configurations.runtime.exclude(group: 'ch.qos.logback')

dependencies {
providedCompile 'javax.servlet:servlet-api:2.5@jar',
"com.google.appengine:appengine-api-1.0-sdk:$gaeVersion"

compile project(':spring-security-core'),
project(':spring-security-web'),
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-webmvc:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-context-support:$springVersion",
'javax.validation:validation-api:1.0.0.GA',
'org.hibernate:hibernate-validator:4.1.0.Final',
"org.slf4j:slf4j-api:$slf4jVersion"

runtime project(':spring-security-config'),
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
"org.slf4j:slf4j-jdk14:$slf4jVersion"
testCompile "com.google.appengine:appengine-testing:$gaeVersion"

testRuntime "com.google.appengine:appengine-api-labs:$gaeVersion",
"com.google.appengine:appengine-api-stubs:$gaeVersion"

}

最佳答案

您可以尝试运行:gradle -b gae.gradle -t

这将为您提供此构建文件中可用的任务列表。然后,您可以使用以下命令运行其中一项任务: gradle -b gae.gradle task-name

关于java - 等级: "Could not determine which tasks to execute.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3506816/

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