簡體   English   中英

干凈安裝插件上的GAE / Maven錯誤“com.google.appengine:appengine-maven-plugin:1.9.18或其某個依賴項無法解析”

[英]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教程的設置並不像我預期的那樣順利。

我試圖遵循的教程

在創建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

幫助文章建議

我已經嘗試重新安裝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,但是在我自己的電腦上安裝它會被證明是一場噩夢。 我已經在我的頭發上磨了很長時間,所以任何建議都會非常感激。

謝謝

有趣的是,盡管教程說的或Maven通過原型插件生成的內容,目前還沒有版本1.9.18的appengine-maven-plugin。 嘗試在POM中切換到之前的版本1.9.17。 還要在依賴項中將版本號從1.9.18更改為1.9.17。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM