Eclipse Indigo无法导入在命令行上构建OK的maven android
作者:互联网
我使用这个原型从命令行创建了一个maven android项目:
19: remote -> android-quickstart (-)
我可以成功地将“mvn install”称为“mvn install”.
当我尝试将同一个项目导入Eclipse Indigo时,我看到了这个:
No marketplace entries found to handle maven-android-plugin:2.8.3:generate-sources in Eclipse. Please see Help for more information.
还有这个:
No marketplace entries found to handle maven-android-plugin:2.8.3:unpack in Eclipse. Please see Help for more information.
请注意,此处没有“帮助”按钮.
如果我稍后解决这些问题,那么构建将失败:
Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.8.3:generate-sources (execution: default-generate-sources, phase: generate-sources) pom.xml /t3 line 22 Maven Project Build Lifecycle Mapping Problem
(以及解包阶段的其他错误)
我稍后会给出完整的安装列表,但是我在Eclipse中注意到了这个插件.我认为这不应该存在(?),因为Indigo内置了M2E ……
– SonaType,Inc.Maven Integration for Eclipse 0.13.0
也许我偶然安装了它?
无论如何,这是我剩下的交易:
> Microsoft Windows [版本6.1.7601]
> Apache Maven 3.0.3(r1075438; 2011-02-28 12:31:09-0500)
> Java版本:1.6.0_26,供应商:Sun Microsystems Inc.
> Android开发工具包11.0.0v201105251008-128486
> Eclipse版本:Indigo Release – 构建ID:
20110615-0604
解决方法:
Thilo-Alexander Ginkel说得对:m2eclipse-android-integration只适用于Indigo Java.我按照这个链接,http://groups.google.com/group/maven-android-developers/browse_thread/thread/3b463cf80edc41e3,有人建议安装Indigo J2EE,它没有Maven集成.因此,要获得m2Eclipse,Android和m2Eclipse-Android-Integration,它实际上与Helios相同……你只需自己安装一切.
标签:android,m2eclipse,eclipse-indigo,android-maven-plugin 来源: https://codeday.me/bug/20190614/1236659.html