在部署Google APP Engine应用程序时出现错误“无法读取默认日志记录配置”

时间:2018-03-22 13:50:54

标签: java maven google-app-engine google-cloud-platform gcloud

我更新了我的谷歌应用引擎gcloud sdk,现在当我尝试部署项目时,这个错误即将来临

[INFO] GCLOUD: INFO: Failed to read the default logging configuration
        [INFO] GCLOUD: java.io.FileNotFoundException: C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\java\config\sdk\logging.properties (The system cannot find the path specified)
        [INFO] GCLOUD:  at java.io.FileInputStream.open0(Native Method)
        [INFO] GCLOUD:  at java.io.FileInputStream.open(FileInputStream.java:195)
        [INFO] GCLOUD:  at java.io.FileInputStream.<init>(FileInputStream.java:138)
        [INFO] GCLOUD:  at java.io.FileInputStream.<init>(FileInputStream.java:93)
        [INFO] GCLOUD:  at java.util.logging.LogManager.readConfiguration(LogManager.java:1301)
        [INFO] GCLOUD:  at com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:38)
        [INFO] GCLOUD:  at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:111)
        [INFO] GCLOUD: 
        [INFO] GCLOUD: Reading application configuration data...
        [INFO] GCLOUD: Bad configuration: Schema file: C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\java\docs\appengine-web.xsd does not exist.
        [INFO] GCLOUD: Please see the logs [C:\Users\kamlesh\AppData\Local\Temp\appcfg2029405644917018939.log] for further information.
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 18.148 s
        [INFO] Finished at: 2018-03-22T18:37:06+05:30
        [INFO] Final Memory: 29M/256M
        [INFO] ------------------------------------------------------------------------
        [ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:1.3.2:deploy (default-cli) on project quizone-apis: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:1.3.2:deploy failed: Non zero exit: 1 -> [Help 1]
        [ERROR] 
        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
        [ERROR] 
        [ERROR] For more information about the errors and possible solutions, please read the following articles:
        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
        Process finished with exit code 1

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。

@Kenworth评论了你的问题,我查了一下,我的appengine-maven-plugin是版本1.3.1。

在我的pom.xml中将其更新为1.3.2之后,堆栈跟踪不再显示。