简体   繁体   English

Maven 构建失败 - 无法执行目标 org.apache.maven.plugins:maven-assembly-plugin:2.5:single (make-assembly)

[英]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.

相关问题 Maven 构建错误 - 无法执行目标 org.apache.maven.plugins:maven-assembly-plugin:2.5.5 - Maven build error - Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5 未能执行目标 org.apache.maven.plugins:maven-resources-plugin:2.5:resources - Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources Maven 无法执行目标 org.apache.maven.plugins:maven-clean-plugin:2.5:clean 无法删除 access_log - Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log 无法解析mojo org.apache.maven.plugins:maven-assembly-plugin:3.1.1的配置 - Unable to parse configuration of mojo org.apache.maven.plugins:maven-assembly-plugin:3.1.1 MAVEN BUILD FAILURE: 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) : Compilation failure - MAVEN BUILD FAILURE: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) : Compilation failure 无法执行目标org.apache.maven.plugins:maven - Failed to execute goal org.apache.maven.plugins:maven Maven:无法执行目标 org.apache.maven.plugins:maven-resources-plugin:2.7:resources - Maven:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources Maven 3:无法执行目标org.apache.maven.plugins:maven-archetype-plugin:2.2:generate - Maven 3: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate Maven:未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.10.1compile: - Maven: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile MAVEN 错误:“无法执行目标 org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean” - MAVEN ERROR : "Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean "
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM