- 问题1:如果在 dependencyManagement 中 import x-bom 和 y-bom,而 x-bom 和 y-bom中都定义了a.jar的不同版本(1.0,和2.0),那最终哪个版本有效?——
与顺序有关,先 import 的 x-bom 中定义的版本 1.0 优先
<dependencyManagement>
<dependencies>
<dependency>
<artifactId>x-bom</artifactId>
<type>pom</type>
<scope>import