[英]Jenkins build Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
I am trying to build my first maven project in Jenkin after setup but unable to do that due to the following:我正在尝试在 Jenkins 中构建我的第一个 maven 项目,但由于以下原因无法做到这一点:
Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project FreeCRMTest: Compilation failure -> [Help 1] [ERROR] Waiting for Jenkins to finish collecting data [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project FreeCRMTest: Compilation failure -> [Help 1] [错误]
I had same problem where maven compiler plugin v3.8.1 was failing in jenkins pipeline.我遇到了同样的问题,maven 编译器插件 v3.8.1 在 jenkins 管道中失败。
What fixed my issue?什么解决了我的问题?
In " Build Environment " menu,在“构建环境”菜单中,
Adding JAVA_HOME=<jdk path>
under " Inject environment variables to the build process " fixes the issue在“ Inject environment variables to the build process ”下添加
JAVA_HOME=<jdk path>
解决了这个问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.