日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

解决Maven报Plugin execution not covered by lifecycle configuration (转载)

發(fā)布時間:2025/7/14 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 解决Maven报Plugin execution not covered by lifecycle configuration (转载) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

原文地址:http://blog.csdn.net/xxd851116/article/details/25197373

出現(xiàn)場景

以前的老項目,在我的環(huán)境(我的環(huán)境較新)下,別人老環(huán)境不報錯。

錯誤示例

一個錯誤示例,子項目引用了父項目,子項目parent標簽處報錯如下: Multiple annotations found at this line: - maven-enforcer-plugin (goal "enforce") is ignored by m2e. - Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.3.1:compile (execution:? default, phase: compile)

解決辦法

官網(wǎng)給出解釋及解決辦法:http://wiki.eclipse.org/M2E_plugin_execution_not_covered 這里有人說下面這樣也可以解決, 即 <plugins> 標簽外再套一個 <pluginManagement> 標簽,我試驗是成功的: http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin <build>
? ? <pluginManagement>
? ? ? ? <plugins>
? ? ? ? ? ? <plugin> ... </plugin>
? ? ? ? ? ? <plugin> ... </plugin>
? ? ? ? ? ? ? ? ? ....
? ? ? ? </plugins>
? ? </pluginManagement>
</build> 但是有時候父項目pom不能被修改,可用官網(wǎng)最后給出的解決辦法: Window-Perferences-Maven-Lifecycle Mapping 保存如下內(nèi)容: <?xml version="1.0"?encoding="UTF-8"?>
<lifecycleMappingMetadata>
??? <pluginExecutions>
????
??? ??? <pluginExecution>
??? ??? ??? <pluginExecutionFilter>
??? ??? ??? ??? <groupId>org.codehaus.mojo</groupId>
??? ??? ??? ??? <artifactId>aspectj-maven-plugin</artifactId>
??? ??? ??? ??? <goals>
??? ??? ??? ??? ??? <goal>compile</goal>
??? ??? ??? ??? </goals>
??? ??? ??? ??? <versionRange>[1.3,)</versionRange>
??? ??? ??? </pluginExecutionFilter>
??? ??? ??? <action>
??? ??? ??? ??? <ignore />
??? ??? ??? </action>
??? ??? </pluginExecution>
??? ????
??? </pluginExecutions>
</lifecycleMappingMetadata> 記得點擊 ”Reload workspace lifecycle mappings metadata“按鈕

?

轉(zhuǎn)載于:https://www.cnblogs.com/huanglin101/p/7977972.html

總結(jié)

以上是生活随笔為你收集整理的解决Maven报Plugin execution not covered by lifecycle configuration (转载)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。