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
- lua unpack 陷阱
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- GO 實現一個 PACK 和 UnPackGo
- 嘗試使用 pack 與 unpack 函式函式
- PHP 中,pack 與 unpack 的使用示例。PHP
- MEMORY_TARGET not supported on this system
- Project facet Java version 1.8 is not supportedProjectJava
- cuda runtime error (801) : operation not supportedError
- KSQLException: The authentication type 10 is not supported.SQLException
- SAP HUM 使用HU02去Unpack一個HU
- 解決 Lumen 中 client charset is not supportedclient
- System.Data.SqlClient is not supported on this platform.SQLclientPlatform
- 問題一:Content-Type header is not supportedHeader
- 【Maven】Maven概述Maven
- 解決Project facet Java version 1.8 is not supported.ProjectJava
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- Cross origin requests are only supported for protocol schemes: http, data, chromROSProtocolSchemeHTTP
- 連線DB2時出錯:encoding not supported??DB2Encoding
- Mac新建資料夾報錯,mkdir():Operation not supportedMac
- MavenMaven
- pyhton3解決”tuple parameter unpacking is not supported”問題
- 用putty連線AWS,報錯“No supported authentication methods available"AI
- 不學Maven會死?Maven真香!Maven
- 使用Maven打包你的應用——maven-jar-plugin & maven-assembly-plugin & maven-shade-pluginMavenJARPlugin
- Maven-修改maven本地倉庫地址Maven
- 【maven】Maven報錯 zip END header not foundMavenHeader
- Maven教程(Eclipse配置及maven專案)MavenEclipse
- 解決辦法:ORA-00845: MEMORY_TARGET not supported on thi
- Caused by: java.lang.IllegalStateException: Only single-level inheritance supported: XxxxServiceJavaException
- SAP Table function 執行報錯 feature not supported 該如何分析Function
- Maven 命令Maven
- Maven ArchetypeMaven
- Maven 整理Maven
- Maven 使用Maven
- Maven EclipseMavenEclipse