Jenkins错误:无法解析POM java.io.IOException:无法运行程序错误= 2,没有这样的文件或目录 [英] Jenkins ERROR: Failed to parse POMs java.io.IOException: Cannot run program error=2, No such file or directory

查看:1377
本文介绍了Jenkins错误:无法解析POM java.io.IOException:无法运行程序错误= 2,没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在詹金斯,我强迫死刑发生在其中一位奴隶身上. 在jenkins配置中,我已将JAVA_HOME和MAVEN位置更新为它在从站中的安装位置.当我在jenkins中开始构建时,出现以下错误

In jenkins I am forcing the execution to happen in one of the slaves. in jenkins configuration I have updated the JAVA_HOME and MAVEN location to the location where its installed in the slave. When I start the build in jenkins I receive the following error

ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "/home/jmeter/jdk1.8.0_112/bin/java" (in directory "/home/jmeter/apache-jmeter-2.13/bin/workspace/MyProject"): error=2, No such file or directory

PS:/home/jmeter/apache-jmeter-2.13/bin/workspace/MyProject-已创建此目录,并且该目录确实存在于从机中

PS : /home/jmeter/apache-jmeter-2.13/bin/workspace/MyProject - This directory got created and does exist in the slave machine

有人可以分享解决问题的专业知识吗?

Can someone please share their expertise in resolving it ?

推荐答案

似乎在MVN安装中存在问题. PLS确保在全局配置中具有所需的mvn安装.

looks like there is a problem in the MVN installation. PLS make sure in the global config that you have the required mvn installation.

jenkins->管理->配置查找 Maven安装,并对所需版本使用自动安装

jenkins-->manage-->configure look for Maven installations and use automatic installation for the required version

确保在同一配置文件中安装了JDK

make sure you have the JDK installation in the same config file

这篇关于Jenkins错误:无法解析POM java.io.IOException:无法运行程序错误= 2,没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆