maven模块引用

parent

<modules>
        <module>../childA</module>
    </modules>
    <dependencies>
        <dependency>
            <groupId>com</groupId>
            <artifactId>childA</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>  
 
    </dependencies>

childA

<modelVersion>4.0.0</modelVersion>
    <groupId>com</groupId>
    <artifactId>childA</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <dependencies>
        <dependency>
            <groupId>com.user</groupId>
            <artifactId>xxx</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>

 

posted @ 2020-09-18 16:43  君子笑而不语  阅读(747)  评论(0编辑  收藏  举报