当前位置:网站首页>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
边栏推荐
- LeetCode 面试题29 顺时针打印矩阵
- Vscode 基础必备 常用插件
- Development principle analysis and source code of dapp-lp single and dual currency liquidity pledge mining system
- Record of user behavior log in SSO microservice Engineering
- 8VC Venture Cup 2017 - Final Round C. Nikita and stack
- Take you to resolve hash conflicts and implement a simple hash table,
- 50 lines of code to crawl TOP500 books and import TXT documents
- Leetcode 128 longest continuous sequence
- Xlua get button registration click event of ugui
- gdb安装
猜你喜欢
随机推荐
NFTGameFi链游系统开发详解方案丨链游系统开发原理解析
Record of user behavior log in SSO microservice Engineering
9. Intelligent transportation project (2)
限流设计及实现
MySQL download and configuration MySQL remote control
Pinda general permission system (day 1~day 2)
Installation and use of logstash
Image binarization
LeetCode 128最长连续序列
Boyun, standing at the forefront of China's container industry
Procedure steps for burning a disc
Using cache in vuex to solve the problem of data loss in refreshing state
Leetcode interview question 29 clockwise print matrix
Wechat applet custom pop-up components
Filebeat安装及使用
商品秒杀系统
(几何) 凸包问题
How to create and enforce indexes
ISO documents
Decompilation of zero time technology smart contract security series articles