SpringBoot的版本仲裁中心

SpringBoot的版本仲裁中心

我们知道SpringBoot能通过启动器(starters)来自动帮助我们管理maven依赖,但是里面不同的maven坐标都有不同的版本,不仅如此,还需要考虑许多maven依赖坐标之间会不会有冲突,这就需要协调好各个版本之间的关系了。


这些SpringBoot都帮我们管理好了,但是它是在哪里管理的呢?
答案就在POM.xml文件中,这里我们以2.2.5.RELEASE版本为例子


    org.springframework.boot
    spring-boot-starter-parent
    2.2.5.RELEASE
     

我们通过Spring Initializr生成一个项目时,会在pom文件中自动帮我们加入这个parent元素,说明咱们的SpringBoot依赖于某个父项目,我们点进去一看究竟


  org.springframework.boot
  spring-boot-dependencies
  2.2.5.RELEASE
  ../../spring-boot-dependencies

里面有个重要的元素,它还依赖个父项目,咱们再点进去看看

结果发现一个properties元素,里面定义了很多maven坐标的版本。


    5.15.11
    2.7.7
    1.9.78
    2.10.1
    1.9.5
    3.13.2
    4.0.6
    4.0.2
    2.1.4
    3.0.0
    1.10.8
    2.8.1
    3.7.2
    1.5.1
    1.13
    2.7.0
    3.9
    1.6
    2.7.0
    2.1.0
    2.7.12
    11.5.0.0
    1.0.9.RELEASE
    10.14.2.0
    4.1.3
    2.10.6
    3.8.1
    6.8.6
    2.2.0
    1.6.0
    1.1.0
    6.0.8
    2.3.29
    3.0.1
    3.0.3
    2.3.2
    2.5.9
    2.8.6
    1.4.200
    2.1
    3.12.6
    1.3.2
    5.4.12.Final
    6.0.18.Final
    3.4.2
    2.5.0
    2.36.0
    4.1.4
    4.5.11
    4.4.13
    9.4.18.Final
    2.15
    2.10.2.20200130
    ${jackson.version}
    1.2.2
    1.3.5
    2.0.3
    1.1.6
    1.0.2
    1.6.4
    2.2.3
    4.0.3
    2.3.5
    1.2.7
    1.3.3
    2.0.2
    1.1.2
    2.1.6
    2.3.2
    2.3.2
    3.1.0
    1.2.0
    1.3.2
    1.1.1
    2.3.1
    2.3.1
    2.0.1
    1.1.4
    1.0
    1.6.2
    1.0.3
    2.2
    1.3
    2.0.1.Final
    1.1
    1.2.0
    3.0.8
    3.4.1.Final
    7.6.0.Final
    2.0.6
    3.1.0
    2.29.1
    6.3.1
    9.4.26.v20200117
    8.5.49
    2.2.0.v201112011158
    1.0.3
    1.15
    4.5.2
    2.10.5
    ${johnzon-jsonb.version}
    1.2.3
    1.6.2
    3.12.4
    1.5.0
    2.4.0
    1.2
    1.3.1
    4.12
    5.5.2
    2.3.1
    1.3.61
    1.3.3
    5.2.2.RELEASE
    3.8.7
    2.12.1
    1.2.3
    1.18.12
    2.4.4
    1.8
    3.1.1
    3.1.0
    3.8.1
    3.1.1
    2.8.2
    3.0.0-M3
    2.22.2
    3.2.0
    2.5.2
    3.2.1
    3.1.2
    3.1.1
    3.1.0
    3.2.2
    3.8.2
    3.1.0
    2.22.2
    3.2.3
    1.3.5
    1.9.12
    3.1.0
    3.11.2
    1.12.0
    7.4.1.jre8
    8.0.19
    1.9.22
    3.2.9
    4.1.45.Final
    2.0.29.Final
    1.1.0
    19.3.0.0
    3.14.7
    1.0.6
    42.2.10
    0.7.0
    2.3.2
    4.2.2
    5.7.3
    1.0.3
    Dysprosium-SR5
    3.3.0
    1.0.0-RC6
    1.3.8
    2.2.18
    1.2.1
    1.5.1
    3.141.59
    2.36.0
    4.4.5
    4.0.1
    1.7.30
    1.25
    8.2.0
    2.2.5.RELEASE
    4.2.1.RELEASE
    2.0.7.RELEASE
    Moore-SR5
    5.2.4.RELEASE
    1.0.3.RELEASE
    5.2.4.RELEASE
    2.3.6.RELEASE
    2.3.2.RELEASE
    2.0.4.RELEASE
    1.2.5.RELEASE
    5.2.2.RELEASE
    Corn-SR1
    3.0.8.RELEASE
    3.28.0
    ${jakarta-mail.version}
    3.0.11.RELEASE
    2.0.1
    3.0.4.RELEASE
    3.0.4.RELEASE
    2.4.1
    9.0.31
    4.0.14
    2.0.29.Final
    2.7
    3325375
    0.41
    1.6.3
    1.0.2
    2.6.3
  

特别特别多的坐标,原来SpringBoot就在这里帮助我们来管理版本,所以说这个是版本仲裁中心也不为过了。后期如果你想要使用某个jar的其他版本可以在这里进行管理.

你可能感兴趣的:(SpringBoot,java,spring)