问题描述
我目前使用的Eclipse靛蓝在我工作的一个Android项目,并正在运行出现问题,有内置的Maven(M2E)制造商。我用的是ADT插件来构建项目,但我也有一个用于构建从命令行的项目的Maven的pom.xml。有一次,我从赫利俄斯切换到靛蓝,我开始看到这些错误:
I'm currently using Eclipse Indigo in an Android project that I'm working on and am running into problems with the built-in Maven (m2e) builder. I use the ADT plug-in to build the project, but I also have a Maven pom.xml that's used to build the project from the command line. Once I switched from Helios to Indigo, I started seeing these errors:
插件执行不属于生命周期配置:com.jayway.maven.plugins.android.generation2:Maven的Android的插件:2.9.0-β-5:生成-源(执行:默认生成,消息人士透露,相:生成-来源)
插件执行不属于生命周期配置:com.jayway.maven.plugins.android.generation2:Maven的Android的插件:2.9.0-β-5:解压(执行:默认解压,相:工艺类)
Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.9.0-beta-5:unpack (execution: default-unpack, phase: process-classes)
插件执行不属于生命周期配置:org.apache.maven.plugins:Maven的JAR-插件:2.3.1:罐子(执行:默认情况下,罐,相:工艺类)
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (execution: default-jar, phase: process-classes)
我的目标是保持Maven构建独立于ADT Eclipse构建,所以我想简单地禁用M2E的项目,但我无法弄清楚如何做到这一点。
My goal is to keep the Maven build separate from the ADT Eclipse build so I'd like to simply disable m2e for the project but I can't figure out how to do that.
有没有一种方法来禁用M2E建设者?另外,有没有办法来解决上述错误?
Is there a way to disable the m2e builder? Alternatively, is there a way to fix the above errors?
推荐答案
打开POM,然后单击插件执行不属于生命周期配置的错误。这会给你发现新的M2E连接器的选项。
Open your POM and click on the "Plugin execution not covered by lifecycle configuration" error. This will give you the option to Discover new m2e connectors.
选择这一点,你应该会自动提示下载并安装Android连接器。
Select this and you should be automatically prompted to download and install the Android Connector.
安装这应该可以解决你的问题。你或许应该卸载旧0.2.4 m2eclipse的,Android的集成,以及支持新的0.3.0 M2E-Android版本。
Installing this should resolve your problems. You should probably uninstall the old 0.2.4 m2eclipse-android-integration as well in favour of the new 0.3.0 m2e-android version.
请查看新的网站了解详情:
Please see the new site for more information:
http://rgladwell.github.com/m2e-android/
这篇关于如何禁用M2E建立在Eclipse中靛蓝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!