当前位置:网站首页>成功解决之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
边栏推荐
- Paging query and join Association query optimization
- wechat_微信小程序中解决navigator进行页面跳转并传递参数问题
- ros::spinOnce()和ros::spin()的使用和区别
- 让torch.cuda.is_available()从false变成true的一点经验
- sqlite数据库的系统表sqlite_master
- next(iter(dataloader))的一点点体会
- Several delete operations in SQL
- KDD 2022 | 如何在跨域推荐中使用对比学习?
- RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
- ISO documents
猜你喜欢

博云,站在中国容器潮头

Class inheritance of 25class

VCD video disc

wm_concat()和group_concat()函数

JVM entry door (1)

A little experience of next (ITER (dataloader))

JVM入个门(1)

Introduction to Ethereum Technology Architecture

Tag dynamic programming - preliminary knowledge for question brushing -2 0-1 knapsack theory foundation and two-dimensional array solution template

RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
随机推荐
Interview key points that must be mastered index and affairs (with B-tree and b+ tree)
transforms. The input of randomcrop() can only be PIL image, not tensor
RSA概念详解及工具推荐大全 - lmn
pycharm如何修改多行注释快捷键
Static registration and dynamic registration of JNI
ROS查询话题具体内容常用指令
Detailed explanation of MySQL mvcc mechanism
ros::spinOnce()和ros::spin()的使用和区别
KDD 2022 | 如何在跨域推荐中使用对比学习?
Detailed explanation of asymmetric cryptosystem
Paging query and join Association query optimization
SQL中的并、交、差运算
JVM入个门(1)
properties文件乱码
ZCMU--1367: Data Structure
CLion断点单步调试
同花顺开户怎么样安全吗?怎么炒股开户
CD-CompactDisk
RSA加密解密详解
如何创建并强制使用索引