我从git存储库获取代码并尝试按照readme.md
指令运行该代码,但是没有任何东西可以让我获得mojoException。我使用带有gcloud:run
和gcloud:deploy
命令的maven作为项目运行。完整细节错误信息在下面给出---
Packaging webapp
[INFO] Assembling webapp [pubsub-appengine-sample] in [E:\OfficeCode\cloud-pubsub-samples-java-master\appengine-push\target\war]
[INFO] Processing war project
[INFO] Copying webapp resources [E:\OfficeCode\cloud-pubsub-samples-java-master\appengine-push\src\main\webapp]
[INFO] Webapp assembled in [78 msecs]
[INFO] Building war: E:\OfficeCode\cloud-pubsub-samples-java-master\appengine-push\target\war.war
[INFO]
[INFO] <<< gcloud-maven-plugin:1.9.17:run (default-cli) @ pubsub-appengine-sample <<<
[INFO]
[INFO] --- gcloud-maven-plugin:1.9.17:run (default-cli) @ pubsub-appengine-sample ---
[INFO]
[INFO] Running gcloud app run...
May 21, 2015 2:19:38 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed E:\OfficeCode\cloud-pubsub-samples-java-master\appengine-push\target/war\WEB-INF/appengine-web.xml
[INFO] Running C:\python27_x64\python.exe -S C:\Program Files\Google\Cloud SDK\google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py --project=halogen-proxy-87911 preview app run E:\OfficeCode\cloud-pubsub-samples-java-master\appengine-push\target/war
[INFO] ERROR: Directories are not supported [E:\OfficeCode\cloud-pubsub-samples-java-master\appengine-push\target/war]. You must provide explicit yaml files.
[INFO] ERROR: (gcloud.preview.app.run) Errors occurred while parsing the App Engine app configuration.
[ERROR] Error: gcloud app xxx exit code is: 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.938 s
[INFO] Finished at: 2015-05-21T14:19:54+05:30
[INFO] Final Memory: 17M/179M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:gcloud-maven-plugin:1.9.17:run (default-cli) on project pubsub-appengine-sample: Error: gcloud app xxx exit code is: 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/MojoExecutionException
告诉我我做错了什么?代码源是Git存储库链接,如下所示
https://github.com/GoogleCloudPlatform/cloud-pubsub-samples-java/tree/master/appengine-push
答案 0 :(得分:0)
感谢您的举报并对此感到遗憾。我很快就会解决这个问题。
编辑(5月23日):现在gcloud maven插件再次运行。请从回购中提取最新的更改。遗憾的是,本地仿真器上的身份验证现在无法正常工作。暂时,您可以将应用程序部署到云(mvn gcloud:deploy)以查看应用程序是否正常运行。一旦修复了本地身份验证问题,我就会更新。