如何交换模块cxf-rt传输http



我在build.gradle中有以下依赖项:

compile ('org.apache.cxf:cxf-bundle:2.4.2')  {
exclude module: 'log4j-over-slf4j'
}

我还想排除包含传输http的模块,因为库之间存在冲突(使用HTTPConduct(。我试图排除它,但我认为我没有正确的模块名称

dependencies任务将为您提供一个依赖关系报告,您可以在其中查看正在引入的可传递依赖关系。

./gradlew dependencies --configuration compileClasspath

如果您检查该任务的输出,您会发现org.apache.cxf:cxf-bundle似乎没有引入cxf-rt-transports-http。所以你需要检查你的项目,找出重复的依赖关系在哪里

Gradle还提供了一种处理版本冲突的方法:https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html#sec:resolving-版本冲突

最新更新