干净安装插件上的GAE / Maven错误“com.google.appengine:appengine-maven-plugin:1.9.18或其某个依赖项无法解析”

时间:2015-02-20 14:12:26

标签: java maven google-app-engine pom.xml artifact

我真的很难开始使用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,我尝试过运行" mvn clean install -U"但它没有帮助。

这是运行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,但是在我自己的电脑上安装它会被证明是一场噩梦。我已经把头发撕成了很久了,所以任何建议都会非常感激。

由于

1 个答案:

答案 0 :(得分:0)

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