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

云效 java编译的时候提示缺少依赖 我上传了依赖还是报错,怎么解决?

云效 java编译的时候提示缺少依赖 我上传了依赖还是报错,怎么解决?
[14:36:51] [ERROR] Failed to execute goal on project coupon-dock: Could not resolve dependencies for project com.samsung.coupon:coupon-dock:jar:1.0-SNAPSHOT: Could not find artifact org.apache.account:account:jar:1.0.8 in mirror (https://maven.aliyun.com/nexus/content/groups/public) -> [Help 1]
[14:36:51] [ERROR]
[14:36:51] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[14:36:51] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[14:36:51] [ERROR]
[14:36:51] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[14:36:51] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[14:36:51] [ERROR]
[14:36:51] [ERROR] After correcting the problems, you can resume the build with the command
[14:36:51] [ERROR] mvn -rf :coupon-dock
[14:36:52] [ERROR] BUILD ERROR
[14:36:52] [ERROR] 147085015
[14:36:52] [ERROR] 步骤运行失败,返回码: 1

展开
收起
三分钟热度的鱼 2023-08-22 15:23:23 53 0
1 条回答
写回答
取消 提交回答
  • 如果上传到非生产库-snapshot的,那您的版本里最好带一下SNAPSHOT org.apache.account:account:jar:1.0.8 ,比如jar包的版本换成 1.0.8-SNAPSHOT。此回答整理自钉群“云效交付域答疑群”

    2023-08-22 15:34:02
    赞同 展开评论 打赏

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

热门讨论

热门文章

相关电子书

更多
云效助力企业软件供应链生产效能提升 立即下载
云效 DevOps 客户案例集(公共云) 立即下载
云效 立即下载