gpt4 book ai didi

eclipse - M2e 1.5.x/Eclipse Luna中的Maven-plugin-plugin的生命周期配置未涵盖插件执行

转载 作者:行者123 更新时间:2023-12-04 10:38:07 26 4
gpt4 key购买 nike

升级到Eclipse Luna或m2e 1.5.x并使用Maven插件项目打开现有工作区后,Eclipse提示说

Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-plugin-plugin ...

最佳答案

您需要告诉m2eclipse如何处理插件执行。

例如,如果消息是:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor
使用以下代码段:

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<versionRange>[3.2,)</versionRange>
<goals>
<goal>descriptor</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

关于eclipse - M2e 1.5.x/Eclipse Luna中的Maven-plugin-plugin的生命周期配置未涵盖插件执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25119266/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com