0

我从 git 存储库中获取了代码,并尝试按照readme.md说明运行该代码,但对于我获取 mojoException 没有任何作用。我使用 mavengcloud:rungcloud:deploy命令作为项目运行。完整的细节错误信息如下---

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

4

1 回答 1

0

感谢您的报告,并对损坏表示抱歉。我会尽快解决这个问题。

编辑(5 月 23 日):现在 gcloud maven 插件再次工作。请从 repo 中提取最新的更改。不幸的是,本地模拟器上的身份验证现在不起作用。暂时,您可以将应用程序部署到云(mvn gcloud:deploy)以查看应用程序是否正常工作。一旦本地身份验证问题得到解决,我将更新。

于 2015-05-22T18:31:04.973 回答