【问题标题】: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"全新安装插件“com.google.appengine:appengine-maven-plugin:1.9.18 或其依赖项之一无法解决”的 GAE/Maven 错误
【发布时间】:2015-02-20 14:12:26
【问题描述】:

我真的很难开始使用 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,但在我自己的计算机上安装它被证明是一场噩梦。我已经为此烦恼了很长时间,所以任何建议都将不胜感激。

谢谢

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

    • 这对我有用,非常感谢。知道为什么教程中有错误的版本吗?这只是一个错误吗?
    • @Eden 看起来插件只是落后于 SDK 本身。 1.9.18 版终于在不久前发布了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-12
    • 2021-06-27
    • 2017-09-15
    • 2014-12-09
    • 1970-01-01
    相关资源
    最近更新 更多