插件执行未涵盖的生命周期配置错误 [英] Plugin execution not covered by lifecycle configuration error

查看:791
本文介绍了插件执行未涵盖的生命周期配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此错误最近出现在我的Eclipse的android的Maven的项目,我不知道为什么。
能否请您看看我的POM和截图,并告诉我,我要去的地方错了,请。谢谢

This error has come up recently in my eclipse android maven project, and I don't know why.
Can you please have a look at my POM and screenShot, and tell me where I am going wrong please. Thanks

这是我的聚甲醛

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.blueMonkeyTech.joggerMotivator</groupId>
<artifactId>joggerMotivator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>joggerMotivator</name>
<dependencies>
    <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>android</artifactId>
        <version>2.3.3</version>
    </dependency>
</dependencies>



<build>
    <finalName>${project.artifactId}</finalName>

    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.1.2</version>
            <executions>
                <execution>
                    <id>attach-sources</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>jar-no-fork</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>

    </plugins>


</build>

推荐答案

打开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/

这篇关于插件执行未涵盖的生命周期配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆