gpt4 book ai didi

java - Ear 不是用 maven-ear-plugin 在 Jenkins 上构建的

转载 作者:行者123 更新时间:2023-11-29 05:30:31 24 4
gpt4 key购买 nike

在 jenkins 上执行 mvn install 时出现此错误:

[JENKINS] Archiving disabled Waiting for Jenkins to finish collecting data mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.9:ear (default-ear) on project proj-ear: Cannot copy a directory: /var/lib/jenkins/jobs/proj/workspace/proj-lib/target/classes; Did you package/install com.xxx.proj-lib:jar:1.0.6-SNAPSHOT:compile?

本地一切构建正常。你知道如何解决这个问题吗?

最佳答案

以某种方式替换目标的顺序有帮助:来自

mvn install test surefire-report:report

mvn test surefire-report:report install

关于java - Ear 不是用 maven-ear-plugin 在 Jenkins 上构建的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21234603/

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