<parent>父模塊標(biāo)簽,指定哪個模塊為父模塊,一般的結(jié)構(gòu)是這樣的
<parent>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
前面是你創(chuàng)建的父模塊的信息,<relativePath>標(biāo)簽是指定你的pom文件的路徑
<dependencyManagement>一般來說子模塊的依賴會使用父模塊的依賴。他們會向上尋找,直到找到有 <dependencyManagement>標(biāo)簽的里面的依賴
<dependencies>添加依賴的標(biāo)簽
<dependency>依賴標(biāo)簽,一般在<dependencies>里