簡體   English   中英

Spring 工具套件中的錯誤“生命周期配置未涵蓋插件執行:org.apache.maven.plugins

[英]Error in Spring Tool Suite "Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins

After importing my project into my IDE, Spring Tool Suite Version: 4.8.1.RELEASE, there is an error in the pom.xml file, the error message is as follows: Plugin execution not covered by lifecycle configuration: org.apache.maven .plugins:maven-clean-plugin:3.1.0:clean (執行:自動清理,階段:初始化)

這些是我的 pom.xml 的內容:

<?xml version="1.0" encoding="UTF-8"?>
<parent>
    <groupId>com.pmt.poc</groupId>
    <artifactId>pmt-service-bom</artifactId>
    <version>0.1.0</version>
</parent>

<artifactId>resource-service</artifactId>
<version>0.0.1-SNAPSHOT</version>

<name>resource-service</name>
<description>PMO Tool</description>

<properties>
    <pmt-util.version>0.5.0</pmt-util.version>
</properties>

<dependencies>
    <!-- Add other dependencies as you need -->
    <dependency>
        <groupId>com.pmt.poc</groupId>
        <artifactId>pmt-util</artifactId>
        <version>${pmt-util.version}</version>
    </dependency>
</dependencies>

我嘗試過提供的其他解決方案,但它們似乎無法解決其他問題。 如果您需要更多信息,請告訴我。 謝謝你。

這在 m2eclipse 文檔中有介紹:

https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html

您可以通過添加以下內容將其標記為已忽略,也可以 select 執行:

<pluginManagement>
  <plugins>
    <plugin>
     <groupId>org.eclipse.m2e</groupId>
     <artifactId>lifecycle-mapping</artifactId>
     <version>1.0.0</version>
     <configuration>
       <lifecycleMappingMetadata>
         <pluginExecutions>
           <pluginExecution>
             <pluginExecutionFilter>
               <groupId>some-group-id</groupId>
               <artifactId>some-artifact-id</artifactId>
               <versionRange>[1.0.0,)</versionRange>
               <goals>
                 <goal>some-goal</goal>
               </goals>
             </pluginExecutionFilter>
             <action>
               <ignore/>
             </action>
           </pluginExecution>
         </pluginExecutions>
       </lifecycleMappingMetadata>
     </configuration>
    </plugin>
  </plugins>
</pluginManagement>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM