您好,欢迎来到保捱科技网。
搜索
您的当前位置:首页解决M2eclipse插件引起的Pom.Xml校验错误

解决M2eclipse插件引起的Pom.Xml校验错误

来源:保捱科技网


1.pom.xml文件报Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.2:resources (execution: default-resources, phase: process-resources)pom.xml/testMaven-commonline 3Maven Project Build

1.pom.xml文件报Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.2:resources (execution: default-resources, phase: process-resources) pom.xml /testMaven-common line 3 Maven Project Build Lifecycle Mapping Problem

2.导致此错误是m2eclipse插件0.12及之前的版本在Eclipse 内执行了一系列的生命周期引起冲突导致的,如果你的maven报此类错误,而又用到了maven-resources-plugin这个插件,那么请按你的项目pom.xml中加上


org.eclipse.m2e
lifecycle-mapping
1.0.0





org.apache.maven.plugins
maven-resources-plugin
[1.2,)

resources
testResources









解决冲突,具体原因参看http://wiki.eclipse.org/M2E_plugin_execution_not_covered

Copyright © 2019- baoaiwan.cn 版权所有 赣ICP备2024042794号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务