[ERROR] Could not find the selected project in the reactor: xxx.xxx:xxx @

文章目录

  • 推荐文章
  • 错误描述
  • 解决方案


推荐文章

Jenkins整合SpringCloud+GitLab+Docker实现自动化镜像部署:https://blog.csdn.net/qq_36565692/article/details/123205428?spm=1001.2014.3001.5501

错误描述

Jenkins进行服务部署过程中打包报错

[ERROR] [ERROR] Could not find the selected project in the reactor: org.example:cloud-auth @ 
[ERROR] Could not find the selected project in the reactor: org.example:cloud-auth -> [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/MavenExecutionException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

[ERROR] Could not find the selected project in the reactor: xxx.xxx:xxx @_第1张图片

解决方案

导致因素:父服务指定了groupId子服务就不需要再指定
解决方案:删除报错服务pom.xml的groupId标签
[ERROR] Could not find the selected project in the reactor: xxx.xxx:xxx @_第2张图片
提交到远程仓库
在这里插入图片描述
重新部署测试
[ERROR] Could not find the selected project in the reactor: xxx.xxx:xxx @_第3张图片

[ERROR] Could not find the selected project in the reactor: xxx.xxx:xxx @_第4张图片

完美解决!

你可能感兴趣的:(解决方案,jenkins,docker,运维,经验分享)