[英]in which maven life cycle, dependencies get downloaded from maven central repository to my local .m2 repository
[英]Why does spring dependencies on Maven Central differ from actual local?
我正在使用spring-boot-starter-parent 2.3.9.RELEASE
,根據Maven Central應該給我spring-boot-starter-security 2.3.9.RELEASE
反過來應該給我spring-security-config 5.3.8.RELEASE
。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.9.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
但是,當我查看 Eclipse 時,我看到spring-security-config 5.3.5.RELEASE
。 我不明白為什么我的本地沒有反映這個工件spring-security-config 5.3.8.RELEASE
即使 spring 引導啟動器父級和 spring 引導啟動器安全性(這兩個父級)正確顯示 2.3.9.RELEASE 此外,我不確定我是否理解屏幕截圖中“從 5.3.8.RELEASE 管理”的含義。 有人可以幫忙嗎?
這意味着 POM 的<dependencyManagement>
部分中的條目覆蓋了版本。
這可能是您通過<scope>import</scope>
識別的直接條目或 BOM。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.