Es ist wahrscheinlich ein einfaches Problem, aber ich sehe es nicht sofort.Gradle Problem "Haupt" groovy.lang.MissingPropertyException: Keine solche Eigenschaft: BaseDir für Klasse: org.apache.catalina.core.StandardEngine
Der Befehl, den ich ausführen, ist gradlew.bat appRun --stacktrace Meine Erwartung: Dass ich eine laufende Webanwendung haben werde. (Oder zumindest erhalten keine Fehlermeldung)
Mein Aktuell: Ich erhalte eine Fehlermeldung, die stacktrace
angegeben„main“ groovy.lang.MissingPropertyException: Keine solche Eigenschaft: baseDir für Klasse: org.apache .catalina.core.StandardEngine
hier ist mein Build-Skript
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE"
}
}
apply plugin: 'org.springframework.boot'
apply plugin: 'java'
apply plugin: 'war'
apply from: 'gretty.plugin'
apply plugin: 'idea'
group 'com.mycom'
version tpos_version
description 'TPOS'
idea {
project {
languageLevel = '1.8'
}
module {
downloadJavadoc = true
downloadSources = true
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
gretty {
httpPort = 9070
contextPath = 'rus-tpos'
servletContainer = 'tomcat7'
realm = 'auth'
realmConfigFile = 'tomcat-users.xml'
}
repositories {
mavenLocal()
maven {
url nexusReadRepoUrl
credentials {
username nexusReadUsrName
password nexusReadUsrPwd
}
}
jcenter()
}
configurations.all {
exclude group: 'commons-logging', module: 'commons-logging'
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: spring_boot_version
compile group: 'org.springframework.hateoas', name: 'spring-hateoas', version: '0.23.0.RELEASE'
providedRuntime group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: spring_boot_version
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: spring_boot_version
compile group: 'org.yaml', name: 'snakeyaml', version: '1.18'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
compile group: 'com.google.guava', name: 'guava', version: '16.0'
compile group: 'com.jayway.jsonpath', name:'json-path', version:'2.2.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jackson_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jackson_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jackson_version
compile group: 'io.springfox', name: 'springfox-swagger2',version: '2.6.1'
compile group: 'io.springfox', name: 'springfox-swagger-ui',version: '2.6.1'
compile group: 'io.springfox', name:'springfox-petstore',version: '2.6.1'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
processResources {
expand("application.version": version)
}
ich nehme an, es mit einem Kater vielleicht der Linie
befasstprovidedRuntime group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: spring_boot_version
oder im Gretty Abschnitt aber nicht sicher, ob ich bitte wissen lassen, was soll mir sonst noch zur Verfügung gestellt und jede Hilfe sehr geschätzt wird
Es ist eine Weile her, seit ich das letzte Mal angeschaut habe, aber glaube, dass dies daran liegt, keine Werte in Großbuchstaben zu haben. Eigenschaften auf home dir .. Ich glaube, dass dies das Problem gelöst, aber kann mich nicht erinnern – user297863