Android的工作室:错误注入而AppEngine上后端代后端、错误、工作室、Android

2023-09-03 23:23:07 作者:心动则痛 Oath°

我已经安装了Maven的3.1.1和使用的应用程序引擎的SDK 1.8.9

I've installed maven 3.1.1 and using app-engine-sdk 1.8.9

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Track-AppEngine 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Track-AppEngine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ Track-AppEngine ---
[INFO] Compiling 5 source files to /Users/satvik/Project/Track-AppEngine/target/Track-        AppEngine-1.0/WEB-INF/classes
[INFO] 
[INFO] --- appengine-maven-plugin:1.8.0:endpoints_get_discovery_doc (default) @ Track-        AppEngine ---
[WARNING] Error injecting: com.google.appengine.endpoints.EndpointsGetDiscoveryDoc
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2397)
at java.lang.Class.getDeclaredFields(Class.java:1806) and goes on and on.

Finally I get build failed and a bunch of [ERROR] tags.

我每次生成的AppEngine后端我得到这个错误。请帮忙。 在此先感谢。

Every time I generate Appengine Backend I get this error. Please help. Thanks In advance.

推荐答案

看来这个问题是因为行家3.1.X与AppEngine上,Maven的插件1.8.0

It seems the issue is because of maven 3.1.X with appengine-maven-plugin 1.8.0

勾选此

的https://groups.google.com/forum/#!msg/google-appengine/FgZrGAJr0T8/VaEXYgPUX7cJ

和报告的问题的,同样是在这里

and reported issue for the same is here

https://开头code.google.com/p/appengine-maven-plugin/issues/detail?id=31

如果您需要使用该插件与Maven 3.1.0,那么你可以用它代替1.8.0的最新 1.8.3 版本的插件。

If you need to use the plug-in with Maven 3.1.0 then you can use the latest 1.8.3 version of plugin instead of 1.8.0 .

<plugin>
      <groupId>com.google.appengine</groupId>
      <artifactId>appengine-maven-plugin</artifactId>
      <version>1.8.3</version>
</plugin>