`

Maven maven-dependency-plugin (goals "copy-dependencies", "unpack") is not suppo

阅读更多

Maven 提示异常:

 

maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e.

 

问题定位:Maven插件不同导致的不兼容。

 

解决方案:

 

在pom.xml中<build></build>中增加如下代码:

<pluginManagement>
<plugins>
  <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-dependency-plugin</artifactId>
        <versionRange>[1.0.0,)</versionRange>
        <goals>
         <goal>copy-dependencies</goal>
        </goals>
       </pluginExecutionFilter>
       <action>
        <ignore/>
       </action>
       </pluginExecution>
       </pluginExecutions>
      </lifecycleMappingMetadata>
     </configuration>
    </plugin>
   </plugins>
</pluginManagement>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics