开发者社区 > 云原生 > 正文

无法构建 rocketmq

我试图看看我是否可以修复apache/maven mvnd,但在试图构建rocketmq开发分支时,我遇到了以下问题:

[INFO] ----------------< org.apache.rocketmq:rocketmq-common >----------------- [INFO] Building rocketmq-common 5.0.1-SNAPSHOT 5.0.1-SNAPSHOT [2/19] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (enforce-ban-circular-dependencies) @ rocketmq-common --- [WARNING] Dependency convergence error for com.squareup.okhttp3:okhttp:jar:3.6.0:runtime paths to dependency are: +-org.apache.rocketmq:rocketmq-common:jar:5.0.1-SNAPSHOT +-com.alibaba:fastjson:jar:1.2.83:compile +-com.squareup.okhttp3:okhttp:jar:3.6.0:runtime and +-org.apache.rocketmq:rocketmq-common:jar:5.0.1-SNAPSHOT +-io.opentelemetry:opentelemetry-exporter-otlp:jar:1.19.0:compile +-io.opentelemetry:opentelemetry-exporter-otlp-common:jar:1.19.0:runtime +-com.squareup.okhttp3:okhttp:jar:4.10.0:runtime

[WARNING] Dependency convergence error for commons-logging:commons-logging:jar:1.1.1:runtime paths to dependency are: +-org.apache.rocketmq:rocketmq-common:jar:5.0.1-SNAPSHOT +-com.alibaba:fastjson:jar:1.2.83:compile +-com.squareup.okhttp3:okhttp:jar:3.6.0:runtime +-com.google.android:android:jar:4.1.1.4:runtime +-commons-logging:commons-logging:jar:1.1.1:runtime and +-org.apache.rocketmq:rocketmq-common:jar:5.0.1-SNAPSHOT +-com.alibaba:fastjson:jar:1.2.83:compile +-com.squareup.okhttp3:okhttp:jar:3.6.0:runtime +-com.google.android:android:jar:4.1.1.4:runtime +-org.apache.httpcomponents:httpclient:jar:4.0.1:runtime +-commons-logging:commons-logging:jar:1.1.1:runtime and +-org.apache.rocketmq:rocketmq-common:jar:5.0.1-SNAPSHOT +-commons-validator:commons-validator:jar:1.7:compile +-commons-beanutils:commons-beanutils:jar:1.9.4:compile +-commons-logging:commons-logging:jar:1.2:compile and +-org.apache.rocketmq:rocketmq-common:jar:5.0.1-SNAPSHOT +-commons-validator:commons-validator:jar:1.7:compile +-commons-logging:commons-logging:jar:1.2:compile

[ERROR] Rule 1: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message: Failed while enforcing releasability. See above detailed error message. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Apache RocketMQ 5.0.1-SNAPSHOT 5.0.1-SNAPSHOT: [INFO] [INFO] Apache RocketMQ 5.0.1-SNAPSHOT ..................... SUCCESS [ 1.561 s] [INFO] rocketmq-common 5.0.1-SNAPSHOT ..................... FAILURE [ 0.098 s] [INFO] rocketmq-remoting 5.0.1-SNAPSHOT ................... SKIPPED [INFO] rocketmq-client 5.0.1-SNAPSHOT ..................... SKIPPED [INFO] rocketmq-store 5.0.1-SNAPSHOT ...................... SKIPPED [INFO] rocketmq-srvutil 5.0.1-SNAPSHOT .................... SKIPPED [INFO] rocketmq-filter 5.0.1-SNAPSHOT ..................... SKIPPED [INFO] rocketmq-acl 5.0.1-SNAPSHOT ........................ SKIPPED [INFO] rocketmq-broker 5.0.1-SNAPSHOT ..................... SKIPPED [INFO] rocketmq-tools 5.0.1-SNAPSHOT ...................... SKIPPED [INFO] rocketmq-controller 5.0.1-SNAPSHOT ................. SKIPPED [INFO] rocketmq-namesrv 5.0.1-SNAPSHOT .................... SKIPPED [INFO] rocketmq-proxy 5.0.1-SNAPSHOT ...................... SKIPPED [INFO] rocketmq-container 5.0.1-SNAPSHOT .................. SKIPPED [INFO] rocketmq-test 5.0.1-SNAPSHOT ....................... SKIPPED [INFO] rocketmq-distribution 5.0.1-SNAPSHOT ............... SKIPPED [INFO] rocketmq-openmessaging 5.0.1-SNAPSHOT .............. SKIPPED [INFO] rocketmq-example 5.0.1-SNAPSHOT .................... SKIPPED [INFO] rocketmq-tiered-store 5.0.1-SNAPSHOT ............... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.760 s [INFO] Finished at: 2023-01-24T12:49:06+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.1.0:enforce (enforce-ban-circular-dependencies) on project rocketmq-common: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]

原提问者GitHub用户gnodet

展开
收起
芬奇福贵 2023-05-26 10:10:45 124 0
1 条回答
写回答
取消 提交回答
  • 尝试使用mvn进行分支开发-Prelease all-DskipTests-Dspotbugs.skip=真正的干净安装-U。目前我进行了测试,它建立了成功。

    回答1.png

    原回答者GitHub用户francisoliverlee

    2023-05-26 16:40:59
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关产品

  • 云消息队列 MQ
  • 相关电子书

    更多
    RocketMQ Client-GO 介绍 立即下载
    RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载
    基于 RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载