[executionStep begins at 2024-11-11 14:57:34]
[INFO] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[14:57:34] [SUCCESS] 获取 Credential 成功
[14:57:34] [WARNING] 未指定工作路径,使用默认路径/root/workspace/code
[14:57:34] [INFO] 上下文初始化
[INFO] PIPELINE_ID=3692958
[INFO] PIPELINE_NAME=流水线 2024-11-09
[INFO] BUILD_NUMBER=5
[INFO] EMPLOYEE_ID=60e25e3a3c458713ddd1ed66
[INFO] WORK_SPACE=/root/workspace
[INFO] PROJECT_DIR=/root/workspace/code
[INFO] BUILD_JOB_ID=263290848
[INFO] CI_RUNTIME_VERSION=jdk1.8
[INFO] Use original settings.xml
[INFO] 如果你想在构建时使用自定义的settings.xml,可以将settings.xml放置到代码库根目录,然后在maven构建命令中加入 -s settings.xml 即可。
[14:57:34] [INFO] 执行步骤
[14:57:34] [INFO]加载基础缓存
[14:57:39] [INFO]执行用户命令
[14:57:39] [User Command] + mvn -B clean package -Dmaven.test.skip=true -Dautoconfig.skip
[14:57:41] [INFO] Scanning for projects...
[14:57:41] [INFO] ------------------------------------------------------------------------
[14:57:41] [INFO] BUILD FAILURE
[14:57:41] [INFO] ------------------------------------------------------------------------
[14:57:41] [INFO] Total time: 0.110 s
[14:57:41] [INFO] Finished at: 2024-11-11T14:57:41+08:00
[14:57:41] [INFO] Final Memory: 4M/146M
[14:57:41] [INFO] ------------------------------------------------------------------------
[14:57:41] [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/root/workspace/code). Please verify you invoked Maven from the correct directory. -> [Help 1]
[14:57:41] [ERROR]
[14:57:41] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[14:57:41] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[14:57:41] [ERROR]
[14:57:41] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[14:57:41] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
[14:57:41] [ERROR] BUILD ERROR
[14:57:41] [ERROR] 263290848
[14:57:41] [ERROR] 步骤运行失败,返回码: 1
[WARNING] 未指定工作路径,使用默认路径/root/workspace/code
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory(/root/workspace/code)
虽然没看到更多上下文,但从这两个提示看,是没有指定代码所在目录,pom.xml文件找不到。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。