简体   繁体   English

执行com.google.appengine时,缺少必需的类:appengine-maven-plugin:1.9.4

[英]A required class was missing while executing com.google.appengine:appengine-maven-plugin:1.9.4

I have just started to learn programming Google App Engine Apps using Java and downloaded an Example from Udacity course ud859-master .when I run the Lesson 2 > helloWorldEndpoit I get this error. 我刚开始学习使用Java编写Google App Engine应用程序并从Udacity课程ud859-master下载了一个示例。当我运行第2 课时 > helloWorldEndpoit我收到此错误。

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.808 s
[INFO] Finished at: 2015-07-29T14:08:21+05:00
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.4:endpoints_get_discovery_doc (default) on project helloworld: Execution default of goal com.google.appengine:appengine-maven-plugin:1.9.4:endpoints_get_discovery_doc failed: A required class was missing while executing com.google.appengine:appengine-maven-plugin:1.9.4:endpoints_get_discovery_doc: com/google/api/server/spi/config/Api
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.google.appengine:appengine-maven-plugin:1.9.4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/error/.m2/repository/com/google/appengine/appengine-maven-plugin/1.9.4/appengine-maven-plugin-1.9.4.jar
[ERROR] urls[1] = file:/C:/Users/error/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[2] = file:/C:/Users/error/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[3] = file:/C:/Users/error/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[4] = file:/C:/Users/error/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[5] = file:/C:/Users/error/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M2a/org.eclipse.sisu.inject-0.0.0.M2a.jar
[ERROR] urls[6] = file:/C:/Users/error/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar
[ERROR] urls[7] = file:/C:/Users/error/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.16/plexus-interpolation-1.16.jar
[ERROR] urls[8] = file:/C:/Users/error/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar
[ERROR] urls[9] = file:/C:/Users/error/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[10] = file:/C:/Users/error/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[11] = file:/C:/Users/error/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[12] = file:/C:/Users/error/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[13] = file:/C:/Users/error/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar
[ERROR] urls[14] = file:/C:/Users/error/.m2/repository/com/google/appengine/appengine-tools-sdk/1.9.4/appengine-tools-sdk-1.9.4.jar
[ERROR] urls[15] = file:/C:/Users/error/.m2/repository/com/google/appengine/appengine-local-endpoints/1.9.4/appengine-local-endpoints-1.9.4.jar
[ERROR] urls[16] = file:/C:/Users/error/.m2/repository/com/google/appengine/appengine-endpoints/1.9.4/appengine-endpoints-1.9.4.jar
[ERROR] urls[17] = file:/C:/Users/error/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.4/appengine-api-1.0-sdk-1.9.4.jar
[ERROR] urls[18] = file:/C:/Users/error/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ERROR] urls[19] = file:/C:/Users/error/.m2/repository/eu/infomas/annotation-detector/3.0.1/annotation-detector-3.0.1.jar
[ERROR] urls[20] = file:/C:/Users/error/.m2/repository/org/slf4j/slf4j-nop/1.7.5/slf4j-nop-1.7.5.jar
[ERROR] urls[21] = file:/C:/Users/error/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: com.google.api.server.spi.config.Api
[ERROR] -> [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/PluginContainerException

I want to know how to solve this issue. 我想知道如何解决这个问题。

This is for the future folks, I experienced the same error. 这是为了未来的人,我经历了同样的错误。 I followed a few steps - 我跟着几步 -

  1. Added these lines of code in my pom.xml 在我的pom.xml添加了这些代码行

     <pluginRepositories> <pluginRepository> <id>gae-staging1</id> <url>https://oss.sonatype.org/content/repositories/comgoogleappengine- 1293/</url> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>twitter-twttr</id> <url>http://maven.twttr.com/</url> </repository> <repository> <id>gae-staging1</id> <url>https://oss.sonatype.org/content/repositories/comgoogleappengine-1292/</url> </repository> </repositories> 
  2. Deleted contents from my C:\\Users\\User\\.m2 directory. 从我的C:\\Users\\User\\.m2目录中删除了内容。

  3. Then run these commands mvn package -X , mvn clean package , mvn appengine:run . 然后运行这些命令mvn package -Xmvn clean packagemvn appengine:run

Hope this helps !!! 希望这可以帮助 !!!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Maven GAE无法执行目标com.google.appengine:appengine-maven-plugin:1.9.12:devserver [...] NoSuchElementException - Maven GAE Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.12:devserver […] NoSuchElementException 运行Google App Engine快速入门时出错:缺少com.google.appengine:appengine-maven-plugin:jar:1.9.24的POM - Error running Google App Engine quickstart : POM for com.google.appengine:appengine-maven-plugin:jar:1.9.24 is missing 在插件com.google.appengine:appengine-maven-plugin中找不到目标“运行” - Could not find goal 'run' in plugin com.google.appengine:appengine-maven-plugin com.google.appengine:appengine-maven-plugin:1.9.18:更新失败。 NoSuchElementException-&gt; - com.google.appengine:appengine-maven-plugin:1.9.18:update failed. NoSuchElementException -> 干净安装插件上的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” com.google.appengine:appengine:+与com.google.cloud.tools:appengine-gradle-plugin:+ - com.google.appengine:appengine:+ vs com.google.cloud.tools:appengine-gradle-plugin:+ mvn appengine:run 无法执行目标 com.google.cloud.tools:appengine-maven-plugin:2.2.0:run mvn appengine:deploy 工作正常 - mvn appengine:run fails to execute goal com.google.cloud.tools:appengine-maven-plugin:2.2.0:run mvn appengine:deploy works fine 无法在项目后端执行目标 com.google.cloud.tools:appengine-maven-plugin:2.3.0:run (default-cli) - Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:2.3.0:run (default-cli) on project backend appengine-maven-plugin配置选项,如jvm标志 - appengine-maven-plugin configuration options like jvm flags appengine-maven-plugin:1.3.1运行失败,非零退出 - appengine-maven-plugin:1.3.1 run failed non zero exit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM