Maven 统一指定jar包版本的方法

在看别人的源码的过程中,会遇到这种情况,就是很多jar包没有指定版本,却能够下载下来。

在后来的研究中发现,有这样一个配置。

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.9.RELEASE</version>
    </parent>

那所有以这个groupId开头的就都被指定了。

<groupId>org.springframework.boot</groupId>

跟 下面这种定义变量差不多。

    <properties>
        <java.version>1.8</java.version>
    </properties>
原文地址:https://www.cnblogs.com/sunxun/p/9468460.html