Maven's <relativePath/> tag

maven configuration file

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

Find the dependent version from the parent warehouse.
When MAVEN builds the jar package, the search order is: address in the relativePath element > local warehouse > remote warehouse
relativePath/ label only exists in the parent module; if it exists in the submodule, it cannot be cleaned, installed, or packaged.

Guess you like

Origin blog.csdn.net/weixin_45686583/article/details/132142407