我试图看看我是否可以修复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
尝试使用mvn进行分支开发-Prelease all-DskipTests-Dspotbugs.skip=真正的干净安装-U。目前我进行了测试,它建立了成功。
原回答者GitHub用户francisoliverlee
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。