当前位置:网站首页>成功解决之Jenkins报错:The goal you specified requires a project to execute but there is no POM
成功解决之Jenkins报错:The goal you specified requires a project to execute but there is no POM
2022-06-26 18:09:00 【JobsTribe】
jenkins不能正常打包。
问题描述
jenkins打包时报错,无法正常启动服务。
[WARNING] The requested profile "dev" could not be activated because it does not exist.
[WARNING] The requested profile "uat" could not be activated because it does not exist.
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/var/lib/jenkins/workspace/ali-op-job). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
原因分析
pom文件找不到导致的。
pom文件不在workspace中的工程目录中。打包时查看配置没有什么错误。
然后查看jenkins配置的所在jenkins的服务器,发现服务器上拉下来的代码的pom文件名称是pomaa .xml。
想起曾经别人改了pom文件的名称,但是在idea中却没有显示这个pomaa.xml的名称,就导致了pom文件找不到的问题。
解决办法
将pomaa.xml文件改为po m.xml并提交到svn中即可。
完美解决!
相关推荐
另外的原因:
查看发现下面多了一级子目录,也就是说pom文件不在workspace中的工程目录中。所以就会导致maven找不到pom文件。所以,我在构建的时候直接在构建前加一个进入工程实际目录的动作,在进行构建,就不会有问题了。
https://blog.csdn.net/longzhizhui926/article/details/83116473
边栏推荐
- Chinese (Simplified) language pack
- 数据加密标准(DES)概念及工作原理
- 50行代码爬取Top500图书导入TXT文档
- vutils. make_ A little experience of grid () in relation to black and white images
- KDD 2022 | how to use comparative learning in cross domain recommendation?
- [unity] use C in unity to execute external files, such as Exe or bat
- 零时科技 | 智能合约安全系列文章之反编译篇
- 请指教同花顺开户选选择哪家券商比较好?现在在线开户安全么?
- Static registration and dynamic registration of JNI
- Temporarily turn off MySQL cache
猜你喜欢
随机推荐
正则匹配相同字符
临时关闭MySQL缓存
LM06丨仅用成交量构造抄底摸顶策略的奥秘
(必须掌握的多线程知识点)认识线程,创建线程,使用Thread的常见方法及属性,以及线程的状态和状态转移的意义
MySQL download and configuration MySQL remote control
PC端录制扫515地机器人/scan数据
深层次安全定义剖析及加密技术
Applet setting button sharing function
[QNX] Command
padding百分比操作
将字符串B插入字符串A,有多少种插入办法可以使新串是一个回文串
同花顺开户怎么样安全吗?怎么炒股开户
Soft test preparation multimedia system
Concept and working principle of data encryption standard (DES)
清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!
Insert string B into string A. how many insertion methods can make the new string a palindrome string
非对称密码体制详解
ZCMU--1367: Data Structure
Ethereum技术架构介绍
数据加密标准DES安全性








