gpt4 book ai didi

java - mvn 构建失败

转载 作者:搜寻专家 更新时间:2023-10-30 20:59:36 25 4
gpt4 key购买 nike

我正在尝试使用 "mvn package" 构建其中一个项目,但我总是看到错误。我在 Ubuntu 中将 maven 安装为 "sudo apt-get install maven"

下面是我得到的错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single (create-archive) on project : Execution create-archive of goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single failed: client id '11012121111423' is too large ( > 4013111 ) -> [Help 1]

什么地方不对,完全看不懂。

最佳答案

a known problem使用 Maven 程序集插件配置。

Since version 2.5你必须指定 tarLongFileMode=posix用于长文件模式支持。

只需编辑 pom.xml 并在 <configuration> 中标签添加:

<tarLongFileMode>posix</tarLongFileMode>

所以整个标签会像这样:

<configuration>
<tarLongFileMode>posix</tarLongFileMode>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</configuration>

关于java - mvn 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30246705/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com