我使用的是window操作系统
我是这样做的(使用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我解决不了这个问题!!
发布于 2019-02-21 11:03:32
这对我来说很有效:
gcloud components update //更新gcloudmvn clean package //重建appmvn appengine:run //在本地服务器(Jetty)上运行(这将替换浏览器的mvn appengine:devserver)编码快乐!
https://stackoverflow.com/questions/45503900
复制相似问题