Maven - Maven-dependency-plugin (goals "copy-dependencies","unpack") is not supported
一、問題
在 pom.xml 檔案出現如下異常
maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e
二、方案在 build 的 plugins 之前新增 <pluginManagement/> 如下
<build>
<!-------- add start -------->
<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>[2.0,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<!-------- add end -------->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>true</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
相關文章
- maven3.6.0安裝後執行mvn -v出現no goalsMavenGo
- Goals of VictoryGo
- SMART goals - SMART objectivesGoObject
- what is Goals for Tuning?Go
- 嘗試使用 pack 與 unpack 函式函式
- GO 實現一個 PACK 和 UnPackGo
- PHP 中,pack 與 unpack 的使用示例。PHP
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- UNPack CommView v.3.0 (8千字)View
- WebLogic10.3 domain克隆方式 - pack, unpackWebAI
- MEMORY_TARGET not supported on this system
- GoldenGate - What is supported and what is not ....Go
- let definitions are not supported by current javascript versionJavaScript
- Project facet Java version 1.8 is not supportedProjectJava
- The ENU localization is not supported by this SQL Server mediaSQLServer
- KSQLException: The authentication type 10 is not supported.SQLException
- 解決 Lumen 中 client charset is not supportedclient
- lambda expressions are not supported at this language level intellijExpressIntelliJ
- MEMORY_TARGET not supported on this system for linuxLinux
- Project facet Java version 1.7 is not supported.ProjectJava
- System.Data.SqlClient is not supported on this platform.SQLclientPlatform
- 【Maven】Maven概述Maven
- Python中struct.pack()和struct.unpack()用法詳解PythonStruct
- iOS9 每日學習第12天:GameplayKit 之 Behaviors 和 GoalsiOSGAMGo
- cuda runtime error (801) : operation not supportedError
- ORA-00845 MEMORY_TARGET not supported
- Python使用struct處理二進位制(pack和unpack用法)PythonStruct
- 解決Project facet Java version 1.8 is not supported.ProjectJava
- ORA-00845 MEMORY_TARGET not supported on this system
- Mac OS X is not supported with software virtualization解決方法Mac
- ORA-00845: MEMORY_TARGET not supported on this system
- Python中struct.pack()和struct.unpack()用法詳細說明PythonStruct
- 【sql調優之執行計劃】使用hint(一)Hints for Optimization Approaches and GoalsSQLAPPGo
- 截止2013年4月Score!Classic Goals下載量超950萬Go
- MavenMaven
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- 問題一:Content-Type header is not supportedHeader
- Mac新建資料夾報錯,mkdir():Operation not supportedMac