在 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/