zl程序教程

您现在的位置是:首页 >  前端

当前栏目

pom.xml

XML POM
2023-09-11 14:17:25 时间

使用intelJ idea 导入maven包管理文件是,使用Import的方式导入,会自动导入pom.xml来导入包。

 

pom.xml会指定父子关系。

 

例如,总模块的pom.xml中有一下内容:

<modules>
        <module>xxx-client</module>
        <module>xxx-web</module>
        <module>xxx-biz</module>
        <module>xxx-test</module>
    </modules>

 

则在xxx-client目录下面的pom.xml中会指定parent

<parent>
        <artifactId>xxx</artifactId>
        <groupId>xxxxxxdfsfdsf</groupId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>