gpt4 book ai didi

Jenkins 提示 M2_HOME 为空

转载 作者:行者123 更新时间:2023-12-02 02:40:15 26 4
gpt4 key购买 nike

我尝试在 Jenkins 1.427 上打开 Maven 包的自动工具安装程序,并在构建日志中获得了以下内容。就好像它正在读取一些但不是全部的自动安装配置。

Started by user benson
Building remotely on acropolis.basistech.net
FATAL: Null value not allowed as an environment variable: M2_HOME
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: M2_HOME
at hudson.EnvVars.put(EnvVars.java:162)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:177)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:673)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443)
at hudson.model.Run.run(Run.java:1376)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:230)

最佳答案

我设置了一个 Maven 压缩包,但缺少顶级目录,这让 Jenkins 感到困惑。

关于 Jenkins 提示 M2_HOME 为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8399360/

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