mvn appengine:devserver错误

时间:2017-08-04 10:03:32

标签: java maven

我正在使用Windows OS

我这样做(在java中使用google api)

https://github.com/aliciatang/CalendarSync

当我写mvn appengine时:devserver,它出错了

[INFO] Retrieving Google App Engine Java SDK from Maven
Downloading: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-java-sdk/1.9.21/appengine-java-sdk-1.9.21.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34:22 min
[INFO] Finished at: 2017-08-04T18:52:58+09:00
[INFO] Final Memory: 19M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.21:devserver (default-cli) on project gcal: Could not resolve SDK artifact in Maven.: Could not transfer artifact com.google.appengine:appengine-java-sdk:zip:1.9.21 from/to central (https://repo.maven.apache.org/maven2): GET request of: com/google/appengine/appengine-java-sdk/1.9.21/appengine-java-sdk-1.9.21.zip from central failed: Connection reset -> [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

我无法解决这个问题!!

1 个答案:

答案 0 :(得分:0)

这对我有用:

  1. gcloud components update //更新gcloud
  2. mvn clean package //重建应用程序
  3. mvn appengine:run //在本地服务器(Jetty)上运行(此替换为:mvn appengine:devserver)
  4. 转到浏览器:http://localhost:8080/

祝您编程愉快!