当前位置:网站首页>The goal you specified requires a project to execute but there is no POM
The goal you specified requires a project to execute but there is no POM
2022-06-26 18:42:00 【JobsTribe】
jenkins Cannot pack normally .
Problem description
jenkins Wrong packing , Unable to start the service properly .
[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
Cause analysis
pom The file cannot be found .
pom The file is not in workspace In the project directory in . There is no error in viewing the configuration when packaging .
Then check it out jenkins Where the configuration is located jenkins Server for , Find the code pulled down from the server pom File name is pomaa .xml.
Think of someone who changed pom The name of the document , But in idea This is not shown in pomaa.xml The name of , That led to it. pom The file cannot be found .
terms of settlement
take pomaa.xml Change the document to po m.xml And submit to svn Then you can .
Perfect solution !
Related to recommend
Another reason :
Check and find that there is one more level of subdirectory below , in other words pom The file is not in workspace In the project directory in . So it will lead to maven Can't find pom file . therefore , When I build, I directly add an action to enter the actual directory of the project before the construction , Building , There won't be a problem .
https://blog.csdn.net/longzhizhui926/article/details/83116473
边栏推荐
- 知識點總結
- Redis single sign on system + voting system
- Logstash安装及使用
- Micro service single sign on system (SSO)
- Convex hull problem
- Insert string B into string A. how many insertion methods can make the new string a palindrome string
- How to create and enforce indexes
- 基于tensorflow的手写数字识别
- JVM entry Door (1)
- 如何创建并强制使用索引
猜你喜欢

Tree array

零时科技 | 智能合约安全系列文章之反编译篇

微信小程序 uniapp 左滑 删除 带删除icon

(multi threading knowledge points that must be mastered) understand threads, create threads, common methods and properties of using threads, and the meaning of thread state and state transition

LeetCode 面试题29 顺时针打印矩阵

Leetcode 128 longest continuous sequence

Filebeat安装及使用

Vscode 基础必备 常用插件

项目实战六:分布式事务-Seata

wm_concat()和group_concat()函数
随机推荐
品达通用权限系统(Day 1~Day 2)
Reading notes: process consulting III
JVM入個門(1)
JVM entry Door (1)
Boyun, standing at the forefront of China's container industry
Example of using QPushButton style (and method of adding drop-down menu to button SetMenu)
Take you to resolve hash conflicts and implement a simple hash table,
xlua获取ugui的button注册click事件
gdb安装
Using recursion to find all gray codes with n bits
50行代码爬取Top500图书导入TXT文档
Why don't I recommend going to sap training institution for training?
Jsonutils tool class (based on Alibaba fastjson)
刷新三观的HP-UX系统中的强指针赋值出core问题
LeetCode 面试题29 顺时针打印矩阵
Union, intersection and difference operations in SQL
Vscode 基础必备 常用插件
Request method 'POST' not supported
Crawl Douban to read top250 and import it into SqList database (or excel table)
ROS query topic specific content common instructions