简体   繁体   English

哪个依赖项是传递依赖项(Maven)的覆盖版本

[英]which dependency is overriding version of a transitive dependency (Maven)

I'm using the below dependency:我正在使用以下依赖项:

<dependency>
  <groupId>com.azure</groupId>
  <artifactId>azure-identity</artifactId>
  <version>1.4.3</version>
</dependency>

Which requires io.netty » netty-handler version 4.1.72.Final.这需要io.netty » netty-handler版本 4.1.72.Final。 However, the version is overridden to 4.1.42.Final.但是,该版本被覆盖为 4.1.42.Final。

The mvn dependency:tree -X command shows clearly that the version is changed: mvn dependency:tree -X命令清楚地表明版本已更改:

[DEBUG]       com.azure:azure-core:jar:1.24.1:compile
[DEBUG]          io.projectreactor:reactor-core:jar:3.3.0.RELEASE:compile (scope managed from compile) (version managed from 3.4.13)
[DEBUG]             org.reactivestreams:reactive-streams:jar:1.0.3:compile (version managed from 1.0.3)
[DEBUG]          io.netty:netty-tcnative-boringssl-static:jar:2.0.26.Final:compile (version managed from 2.0.46.Final)
[DEBUG]       com.azure:azure-core-http-netty:jar:1.11.6:compile
[DEBUG]          io.netty:netty-handler:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]             io.netty:netty-common:jar:4.1.42.Final:compile (version managed from 4.1.42.Final)
[DEBUG]             io.netty:netty-transport:jar:4.1.42.Final:compile (version managed from 4.1.42.Final)
[DEBUG]                io.netty:netty-resolver:jar:4.1.42.Final:compile (version managed from 4.1.42.Final)
[DEBUG]             io.netty:netty-codec:jar:4.1.42.Final:compile (version managed from 4.1.42.Final)
[DEBUG]          io.netty:netty-handler-proxy:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]             io.netty:netty-codec-socks:jar:4.1.42.Final:compile (version managed from 4.1.42.Final)
[DEBUG]          io.netty:netty-buffer:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]          io.netty:netty-codec-http:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]          io.netty:netty-codec-http2:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]          io.netty:netty-transport-native-unix-common:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]          io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]          io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]          io.projectreactor.netty:reactor-netty-http:jar:1.0.14:compile
[DEBUG]             io.netty:netty-resolver-dns:jar:4.1.42.Final:compile (version managed from 4.1.72.Final)
[DEBUG]                io.netty:netty-codec-dns:jar:4.1.42.Final:compile (version managed from 4.1.42.Final)
[DEBUG]             io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.72.Final:compile
[DEBUG]                io.netty:netty-resolver-dns-classes-macos:jar:4.1.72.Final:compile
[DEBUG]             io.projectreactor.netty:reactor-netty-core:jar:1.0.14:compile

But I could not find other dependencies that uses io.netty » netty-handler with version 4.1.42.Final in the log.但是我在日志中找不到使用io.netty » netty-handler和 4.1.42.Final 版本的其他依赖项。

Is there any way to find which dependency actually using io.netty » netty-handler 4.1.42.Final and overriding version 4.1.72.Final?有没有办法找到实际使用io.netty » netty-handler 4.1.42.Final 和覆盖版本 4.1.72.Final 的依赖项?

The version comes from <dependencyManagement> , so probably from inside a BOM (an entry with <scope>import</scope> ) that is in your POM or your parent POM.该版本来自<dependencyManagement> ,因此可能来自您的 POM 或父 POM 中的 BOM(带有<scope>import</scope>的条目)内部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM