父pom文件里这么写 不会自动继承到子model中 (推荐这么写,夫pom只约束公用版本)
<properties>
<guava.version>28.1-jre</guava.version>
</properties>
<dependencyManagement>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencyManagement>
子model需要这么使用
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>
父pom文件这么写,则 子 model不需要定义就直接可以使用这个依赖(自动继承)
<properties>
<guava.version>28.1-jre</guava.version>
</properties>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>