当前位置:网站首页>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
边栏推荐
- PC end records 515 ground sweeping robot /scan data
- To: Apple CEO Cook: great ideas come from constantly rejecting the status quo
- Using recursion to find all gray codes with n bits
- Wechat applet custom pop-up components
- Record of user behavior log in SSO microservice Engineering
- IK word breaker
- JSONUtils工具类(基于alibaba fastjson)
- PC端录制扫515地机器人/scan数据
- VCD-影音光碟
- Clion compiling catkin_ WS (short for ROS workspace package) loads cmakelists Txt problems
猜你喜欢
随机推荐
DVD-数字通用光盘
Project practice 6: distributed transaction Seata
转:苹果CEO库克:伟大的想法来自不断拒绝接受现状
交叉编译环境出现.so链接文件找不到问题
JVM入个门(1)
Publish message publishers and subscribe message subscribers of ROS
知识点总结
Leetcode 128 longest continuous sequence
Installation and use of filebeat
Pinda general permission system (day 1~day 2)
如何创建并强制使用索引
Refresh the strong pointer assignment problem in the HP-UX system of Sanguan
8VC Venture Cup 2017 - Final Round C. Nikita and stack
Nftgamefi chain game system development detailed solution - chain game system development principle analysis
Insert string B into string A. how many insertion methods can make the new string a palindrome string
(树) 树状数组
Filebeat安装及使用
Summary of knowledge points
品达通用权限系统(Day 1~Day 2)
Why don't I recommend going to sap training institution for training?








