如何排除模块 cxf-rt-transports-http
How to excplude module cxf-rt-transports-http
我在 build.gradle 中有以下依赖项:
compile ('org.apache.cxf:cxf-bundle:2.4.2') {
exclude module: 'log4j-over-slf4j'
}
我还想排除包含 transports-http 的模块,因为库之间存在冲突(使用 HTTPConduit)。我试图排除它,但我认为我没有正确的模块名称
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-version-conflict
我在 build.gradle 中有以下依赖项:
compile ('org.apache.cxf:cxf-bundle:2.4.2') {
exclude module: 'log4j-over-slf4j'
}
我还想排除包含 transports-http 的模块,因为库之间存在冲突(使用 HTTPConduit)。我试图排除它,但我认为我没有正确的模块名称
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-version-conflict