25)m2e-execution-not-covered 具体例子

发布时间 2023-06-06 12:33:08作者: zno2

http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html 

 

这个插件定义的phase 不包含在Eclipse m2e 的生命周期内。(这种情况很正常,自己定义的插件所在的phase 可以是各种各样的)

 

出现这种情况除了有个讨厌的红叉,不会影响正常的maven build ,只是eclipse的校验错误

 

解决这个问题可以通过配置指定这个插件该如何处理,是忽略不执行,还是执行 (m2e 的生命周期内)

快速修复 ignore

      <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.jibx</groupId>
                                      <artifactId>
                                          maven-jibx-plugin
                                      </artifactId>
                                      <versionRange>
                                          [1.2.2,)
                                      </versionRange>
                                      <goals>
                                          <goal>bind</goal>
                                      </goals>
                                  </pluginExecutionFilter>
                                  <action>
                                      <ignore></ignore>
                                  </action>
                              </pluginExecution>
                          </pluginExecutions>
                      </lifecycleMappingMetadata>
                  </configuration>
              </plugin>
          </plugins>
      </pluginManagement>

 

注:

This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.

注: