2017-04-05 16 views
0

これはおそらく簡単な問題ですが、私は今それを見ていません。gradle issue "main" groovy.lang.MissingPropertyException:このようなプロパティはありません:class:org.apache.catalina.core.StandardEngineのbaseDir

私が実行するコマンドはgradlew.batです。appRun --stacktrace 私の期待:実行中のWebアプリケーションがあります。 (または、最低で任意のエラーメッセージが出ていない)

私の実際:いいえ、そのようなプロパティ:クラスのBASEDIR:org.apache私は

「メイン」groovy.lang.MissingPropertyExceptionを述べたスタックトレースのエラーメッセージが表示されます.catalina.core.StandardEngineここ

は私のビルドスクリプトは、私はそれは多分ライン

Tomcatで扱うと仮定

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) 
} 

です

providedRuntime group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: spring_boot_version 

またはgrettyセクションではなく、確かに私は、私が提供すべきであり、どのような援助が

+0

私は最後にこれを見ていたが、これはgradleに値がないためだと信じていました。私はこの問題を解決したと思いますが、覚えていないと思います。 – user297863

答えて

0

を高く評価され、私は最後にこれを見たが、これが原因ではないのであると信じているので、それがしばらくされている他に何教えてください私はこれが問題を解決したと思いますが、覚えていないと思います。

+0

So Gradleいいえ、このようなプロパティはありません:gradle.propertiesにprojectまたはhome dのいずれかを持つエラーを解決する必要がありますファイル内のそのプロパティに値を割り当てていることを確認してください。 – user297863

関連する問題