开发者社区 > 云效DevOps > 正文

无法打包部署

[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

展开
收起
河南彪哥 2024-11-11 15:04:11 27 0
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文件找不到。

    2024-11-11 20:27:37
    赞同 70 展开评论 打赏
问答分类:
问答地址:

云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。

热门讨论

热门文章

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载