Maven的<relativePath/>标签

maven配置文件

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.3</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

从父级仓库查找依赖版本
MAVEN构建jar包时候查找顺序:relativePath元素中的地址>本地仓库>远程仓库
relativePath/ 标签只存在父模块中;子模块中存在,则不能clean、install、package。

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