diggbag

          BlogJava 聯系 聚合 管理
            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.導致此錯誤是m2eclipse插件0.12及之前的版本在Eclipse 內執行了一系列的生命周期引起沖突導致的,如果你的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相關

          Feedback

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

          主站蜘蛛池模板: 长武县| 马龙县| 惠水县| 梅河口市| 长泰县| 桦甸市| 建水县| 安乡县| 临洮县| 津市市| 延安市| 香河县| 高唐县| 浦北县| 江川县| 临沧市| 津南区| 探索| 泽普县| 舟曲县| 玛纳斯县| 镇坪县| 茂名市| 滕州市| 福清市| 敦化市| 巴林左旗| 博罗县| 木兰县| 疏勒县| 隆子县| 潢川县| 原阳县| 万安县| 上高县| 盈江县| 扎鲁特旗| 利川市| 贵德县| 行唐县| 浠水县|