[英]Maven build failure - Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5:single (make-assembly)
I am trying to build project using Maven. Unfortunately I have no experience with maven so I am a bit helpless.我正在尝试使用 Maven 构建项目。不幸的是,我没有使用 maven 的经验,所以我有点无助。
My system:我的系统:
Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0) Maven home: /usr/local/Cellar/maven/3.8.5/libexec Java version: 18, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/18/libexec/openjdk.jdk/Contents/Home Default locale: zh_CN_#Hans, platform encoding: UTF-8 OS name: "mac os x", version: "12.1", arch: "x86_64", family: "mac"
Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0) Maven home: /usr/local/Cellar/maven/3.8.5/libexec Java version: 18, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/18/libexec/openjdk .jdk/Contents/Home 默认语言环境:zh_CN_#Hans,平台编码:UTF-8 操作系统名称:“mac os x”,版本:“12.1”,架构:“x86_64”,系列:“mac”
error:错误:
Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5:single (make-assembly) on project
test: Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.5:single failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-assembly-plugin:2.5:single: java.lang.ExceptionInInitializerError: null test: Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.5:single failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-assembly-plugin:2.5:single: java. lang.ExceptionInInitializerError:null
Maybe try using newer version of the assembly plugin?也许尝试使用更新版本的程序集插件? You are using Java 18 and the newest maven assembly version is, I think, 3.3.0.
您使用的是 Java 18,我认为最新的 maven 汇编版本是 3.3.0。 Maybe this is causing incompatibility.
也许这是导致不兼容的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.