jenkins构建报错:找不到pom.xml文件

 构建报错:

ERROR: No such file C:\Program Files (x86)\Jenkins\workspace\maven_test2\pom.xml

Perhaps you need to specify the correct POM file path in the project configuration?
Finished: FAILURE

原因:未配置pom.xml文件位置导致报错

解决方法:pom.xml文件,添加的是绝对位置(配置时,需要设置具体项目pom.xml文件位置)

 

posted @ 2021-12-09 14:09  阳光宝贝-沐沐  阅读(3549)  评论(0编辑  收藏  举报