diggbag

          BlogJava 聯(lián)系 聚合 管理
            0 Posts :: 13 Stories :: 6 Comments :: 0 Trackbacks

          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.導(dǎo)致此錯誤是m2eclipse插件0.12及之前的版本在Eclipse 內(nèi)執(zhí)行了一系列的生命周期引起沖突導(dǎo)致的,如果你的maven報此類錯誤,而又用到了maven-resources-plugin這個插件,那么請按你的項目pom.xml中加上

          <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-resources-plugin</artifactId>
                          <versionRange>[1.2,)</versionRange>
                          <goals>
                          <goal>resources</goal>
                           <goal>testResources</goal>
                          </goals>
                        </pluginExecutionFilter>
                        <action>
                          <ignore />
                        </action>
                      </pluginExecution>
                    </pluginExecutions>
                  </lifecycleMappingMetadata>
                </configuration>
              </plugin>

          解決沖突,具體原因參看http://wiki.eclipse.org/M2E_plugin_execution_not_covered


           

          posted on 2012-04-18 18:19 哲同 閱讀(14865) 評論(1)  編輯  收藏 所屬分類: java相關(guān)

          Feedback

          # re: 解決m2eclipse插件引起的pom.xml校驗錯誤 2012-12-25 14:52 小芬
          我這邊遇到了同樣的問題,但是沒有得到解決  回復(fù)  更多評論
            

          主站蜘蛛池模板: 通海县| 桐庐县| 铜川市| 民丰县| 西宁市| 台州市| 琼结县| 桂东县| 湖南省| 新平| 利辛县| 合江县| 北流市| 镇安县| 柳江县| 揭西县| 双鸭山市| 肇州县| 遂川县| 汾西县| 织金县| 樟树市| 阿克苏市| 易门县| 巴彦淖尔市| 从化市| 辽宁省| 惠来县| 宁河县| 蕲春县| 五家渠市| 安泽县| 浦城县| 雅安市| 文山县| 石泉县| 利津县| 光山县| 湄潭县| 万宁市| 汝南县|