当前位置:网站首页>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
边栏推荐
- Micro service single sign on system (SSO)
- The cross compilation environment appears So link file not found problem
- Numpy's Matplotlib
- Project practice 6: distributed transaction Seata
- Soft test preparation multimedia system
- IK word breaker
- JVM entry door (1)
- Xlua get button registration click event of ugui
- Jsonutils tool class (based on Alibaba fastjson)
- Redis Basics
猜你喜欢

(树) 树状数组

LeetCode 128最长连续序列

Clion compiling catkin_ WS (short for ROS workspace package) loads cmakelists Txt problems

ISO文件

图像二值化处理

Crawl Douban to read top250 and import it into SqList database (or excel table)

ISO documents

爬取豆瓣读书Top250,导入sqlist数据库(或excel表格)中

Take you to resolve hash conflicts and implement a simple hash table,

Image binarization
随机推荐
Example of using QPushButton style (and method of adding drop-down menu to button SetMenu)
Union, intersection and difference operations in SQL
redis 基础知识
Micro service single sign on system (SSO)
Leetcode 128 longest continuous sequence
Current limiting design and Implementation
Procedure steps for burning a disc
Take you to resolve hash conflicts and implement a simple hash table,
Filebeat安装及使用
xlua获取ugui的button注册click事件
Redis single sign on system + voting system
转:实事求是
Comparing the size relationship between two objects turns out to be so fancy
When does the mobile phone video roll off?
The king of Internet of things protocol: mqtt
Leetcode interview question 29 clockwise print matrix
品达通用权限系统(Day 1~Day 2)
Microservice architecture
wm_concat()和group_concat()函数
一些基本错误