maven项目-修复Plugin execution not covered by lifecycle configuration: org.codehaus.
程序员文章站
2022-04-23 16:29:48
1:pom.xml代码 2:报错信息如下 3:错误原因 4:解决办法 ......
1:pom.xml代码
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.8</version> <executions> <execution> <id>add-resource</id> <phase>generate-resources</phase> <goals> <goal>add-resource</goal> </goals> <configuration> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> <useSystemClassLoader>false</useSystemClassLoader> </configuration> </plugin>
2:报错信息如下
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.8:
add-resource (execution: add-resource, phase: generate-resources) pom.xml
3:错误原因
eclipse的m2e插件还没支持到execution
4:解决办法
<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> build-helper-maven-plugin </artifactId> <versionRange> [1.8,) </versionRange> <goals> <goal>add-source</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin>
上一篇: 孙策把位置传给孙权之后 孙权是怎么对待大哥的子女的
下一篇: 如何取消两个苹果手机用一个id?
推荐阅读
-
maven项目-修复Plugin execution not covered by lifecycle configuration: org.codehaus.
-
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.8:add-test-source (execution: add-functional-so
-
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.8:add-test-source (execution: add-functional-so
-
maven项目-修复Plugin execution not covered by lifecycle configuration: org.codehaus.
-
pom文件报Plugin execution not covered by lifecycle configuration。
-
Maven:Plugin execution not covered by lifecycle