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

标签 java maven jenkins

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

相关文章:

java - 使用 Mongo DB 异步驱动程序将文档列表放入 Java 列表中

java - 将 Java applet 放到服务器上

java - org.osgi.framework.BundleException : Unresolved constraint in bundle SampleModel

java - Maven阴影插件: Cannot create instance of

Jenkins 条件步骤检查是否设置了 ENV 变量

azure - 我应该如何配置 Jenkins CI(或 Hudson)以在 Azure 上运行?

java - GWT、Google App Engine、TimerTask 或 ServiceImpl 中的 Thread 抛出异常

java - 用于 Java 中的适配器模式

Maven项目中的java.lang.NoSuchMethodError : org. w3c.tidy.Tidy.setHideComments错误

node.js - 在 Jenkins 中构建成功,但 AWS-Codebuild 出现插件错误