繁体   English   中英

生命周期配置未涵盖M2Eclipse插件执行

[英]M2Eclipse Plugin Execution not covered by lifecycle configuration

我已经在Eclipse Indigo中安装了m2eclipse,噩梦开始了。 我使用命令行运行“ mvn clean install”,然后运行“ mvn eclipse:clean eclipse:eclipse”。 之后,在eclipse中刷新了我的应用程序。 在eclipse中重建后,问题选项卡被填满“执行的插件未包含在liftcycle配置中……”错误。

我试图取消m2eclipse的运气。 所以我在下面添加了一些内容。 我确信它们是正确的,因为我遵循“快速修复->将pom.xml中的目标永久标记为在Eclipse构建中被忽略”。 我在命令行中重建并刷新了Eclipse,这些错误仍然存​​在。 我该怎么做才能从“问题”选项卡中消除这些错误? 看起来好乱 谢谢!

<pluginManagement>
    <plugins>
        <!--This plugin's configuration is used to store Eclipse 
            m2e settings only. It has no influence on the Maven build itself. -->
        <plugin>
            <groupId>org.eclipse.m2e</groupId>
            <artifactId>lifecycle-mapping</artifactId>
            <version>1.0.0</version>
            <configuration>
                <lifecycleMappingMetadata>
                    <pluginExecutions>
                        <pluginExecution>
                            <pluginExecutionFilter>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>aspectj-maven-plugin</artifactId>
                                <versionRange>[1.0,)</versionRange>
                                <goals>
                                    <goal>test-compile</goal>
                                    <goal>compile</goal>
                                </goals>
                            </pluginExecutionFilter>
                            <action>
                                <execute />
                            </action>
                        </pluginExecution>
                    </pluginExecutions>
                </lifecycleMappingMetadata>
            </configuration>
        </plugin>
    </plugins>
</pluginManagement>

欢迎使用m2e :)您可以检查此问题以寻求可能的解决方案。

简而言之,您需要修改pom.xml才能使m2e满意。 或者,您可以使用Apache Eclipse插件或切换到Idea IDE。 我从未使用过apache插件,但是IDEA很好用。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM