GAE/Maven 全新安装插件时出错 "com.google.appengine:appengine-maven-plugin:1.9.18 or one of its dependencies could not be resolved"

GAE/Maven error on clean install Plugin "com.google.appengine:appengine-maven-plugin:1.9.18 or one of its dependencies could not be resolved"

我真的很难开始使用 Google App Engine,因为 Cloud Endpoints 教程的设置并不像我预期的那样顺利。

The tutorial I am trying to follow

问题出现在我创建 MyBean.java 和 YourFirstAPI.java 后,导航到包含 pom.xml 和 运行 "mvn clean install" 的文件夹。发生此错误:

[ERROR] Plugin com.google.appengine:appengine-maven-plugin:1.9.18 or one of its dependencies could not be resolved: Could not find artifact com.google.appengine:appengine-maven-plugin:jar:1.9.18 in central (https://repo.maven.apache.org/maven2) -> [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/PluginResolutionException

The help article suggested

我试过重新安装 maven,我试过 运行ning "mvn clean install -U" 但没有用。

这是 运行ning mvn -version

的结果
mvn -version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T21:58:10+01:00)
Maven home: /usr/local/Cellar/maven/3.2.3/libexec
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"

信不信由你我不是一个完全的新手并且之前在实习中使用过 GAE,但是在我自己的计算机上安装它被证明是一场噩梦。很长一段时间以来,我一直在为此焦头烂额,所以任何建议都将不胜感激。

谢谢

有趣的是,尽管教程说了什么或 Maven 通过原型插件生成了什么,但目前没有 1.9.18 版的 appengine-maven-plugin。尝试在您的 POM 中切换到以前的版本 1.9.17。还要在依赖项中将版本号从 1.9.18 更改为 1.9.17。