亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何解決Spring數據Maven構建的“生命周期配置未涵蓋的插件執行”問題

如何解決Spring數據Maven構建的“生命周期配置未涵蓋的插件執行”問題

HUH函數 2019-06-05 16:36:34
如何解決Spring數據Maven構建的“生命周期配置未涵蓋的插件執行”問題我想和你一起工作Spring數據與Neo4j..我一開始就是想跟著本指南鏈接到主站點。尤其是基于“你好,世界!”示例文件..下面是導致這些問題的插件的片段。<plugin><!-- Required to resolve aspectj-enhanced class features -->     <groupId>org.codehaus.mojo</groupId>     <artifactId>aspectj-maven-plugin</artifactId>     <version>1.0</version>     <configuration>         <outxml>true</outxml>         <aspectLibraries>             <aspectLibrary>                 <groupId>org.springframework</groupId>                 <artifactId>spring-aspects</artifactId>             </aspectLibrary>             <aspectLibrary>                 <groupId>org.springframework.data</groupId>                 <artifactId>spring-data-neo4j</artifactId>             </aspectLibrary>         </aspectLibraries>         <source>1.6</source>         <target>1.6</target>     </configuration>     <executions>         <!-- ERROR HERE IN ECLIPSE SEE BELOW FOR FULL MESSAGE -->         <execution>             <goals>                 <goal>compile</goal>                 <goal>test-compile</goal>             </goals>         </execution>     </executions>     <dependencies>         <dependency>             <groupId>org.aspectj</groupId>             <artifactId>aspectjrt</artifactId>             <version>${aspectj.version}</version>         </dependency>         <dependency>             <groupId>org.aspectj</groupId>             <artifactId>aspectjtools</artifactId>             <version>${aspectj.version}</version>         </dependency>     </dependencies></plugin>我看到的錯誤是: Multiple annotations found at this line:     - Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:     compile (execution: default, phase: process-classes)     - Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:     test-compile (execution: default, phase: process-classes)我正在運行Eclipse3.6.2和M2E0.13。我不是一個Maven專家,所以如果可能的話,請對你的答案做很好的解釋。我也試過M2E 1.0.0通孔此更新站點仍然會犯同樣的錯誤。
查看完整描述

3 回答

?
慕容森

TA貢獻1853條經驗 獲得超18個贊

在我的例子中,類似的問題,而不是使用安德魯的建議,修復,它只是在我介紹了簡單的工作。<pluginManagement>標記到所討論的put.xml??雌饋磉@個錯誤是由于缺少了一個<pluginManagement>標記。因此,為了避免Eclipse中的異常,只需將所有插件標記封裝在<pluginManagement>標簽,就像這樣:

<build>
    <pluginManagement>
        <plugins>
            <plugin> ... </plugin>
            <plugin> ... </plugin>
                  ....        </plugins>
    </pluginManagement></build>

一旦這個結構就位,錯誤就消失了。


查看完整回答
反對 回復 2019-06-05
?
揚帆大魚

TA貢獻1799條經驗 獲得超9個贊

建議的解決辦法EclipseM2E文檔:

  1. 使用快速修復中的誤差柚木并選擇Permanently mark goal run in pom.xml as ignored in Eclipse build-這將為您生成所需的樣板代碼。

  2. 若要指示Eclipse在構建過程中運行插件,只需替換<ignore/>帶標簽<execute/>在生成的配置中標記:

    <action>
        <execute/></action>

    或者,您也可以指示Eclipse在增量構建上運行插件:

    <action>
        <execute>
            <runOnIncremental>true</runOnIncremental>
        </execute ></action>


查看完整回答
反對 回復 2019-06-05
  • 3 回答
  • 0 關注
  • 904 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號