gpt4 book ai didi

java - 没有这样的属性: stopPort for class: org. gradle.api.internal.project.Default Project_Decolated

转载 作者:行者123 更新时间:2023-12-01 11:57:20 25 4
gpt4 key购买 nike

当我尝试在 Eclipse 中运行 'grale appenginerun' 命令时,但显示以下错误:

'gradlew' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\GeekLabs\git\the-nizamabad-gradle\thenizamabad>gradle appenginerun

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\GeekLabs\git\the-nizamabad-gradle\thenizamabad\build.gradle
' line: 22

* What went wrong:
A problem occurred evaluating root project 'thenizamabad'.
> No such property: stopPort for class: org.gradle.api.internal.project.DefaultP
roject_Decorated

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

Total time: 4.273 secs

这是我的 build.gradle :

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'appengine'
apply plugin:'war'


sourceCompatibility = 1.7
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'thenizamabad', 'Implementation-Version': version
}
}

repositories {
mavenCentral()
}
appengine {
httpPort = 8999
downloadSdk = true
httpAddress = '0.0.0.0'
stopPort = 8099
stopKey = 'STOP'
jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9988',
'-Ddatastore.backing_store=C:/gae/local_db_w.bin']

appcfg {
email = 'geeklabsapps@gmail.com'
oauth2 = true
logs {
severity = 1
outputFile = file('mylogs.txt')
}
app {
id = 'thenizamabad'
}
}
enhancerVersion = "v1"
enhancerApi = "jpa"
}

buildscript {
repositories {
mavenCentral()
// https://github.com/mgoellnitz/tangram-examples/blob/master/example-jpa-gae/build.gradle
maven {
url "https://raw.githubusercontent.com/mgoellnitz/artifacts/master" }
}

dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.9'
// for Enhancer
classpath 'tangram:gradle-plugin:0.9-SNAPSHOT'
}
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
// GAE
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.9'
compile 'com.google.appengine:appengine-api-1.0-sdk:1.9.9'
compile 'com.google.appengine:appengine-api-labs:1.9.9'
}

test {
systemProperties 'property': 'value'
}

uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}

如果我评论这两行工作正常:

stopPort = 8099
stopKey = 'STOP'

不知道为什么会出现这样的情况?它在我 friend 的系统中工作正常,但在我的系统中却不行..我使用的是 32 位操作系统和 Grdle 版本:2.2.1..

如果您理解,请提供正确的答案..

提前致谢..

最佳答案

据我所知,此属性是为 jetty 定义的。插件,未应用于脚本。

没有为 appengine 定义此类属性插件。

关于java - 没有这样的属性: stopPort for class: org. gradle.api.internal.project.Default Project_Decolated,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28342245/

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