父工程--->Jurisdiction-Of-SSM
子模块(module)--->Jurisdiction-Of-SSM-web
++++++++++++++++++++++++++++++
此时,在父工程的 pom.xml 文件下导入了 依赖A
|
如果在 子模块 的 pom.xml 文件下,添加以下代码
<dependency>
<groupId>com.myproject</groupId>
<artifactId>Jurisdiction-Of-SSM</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependency>
|
是否,可以认为:
1、子模块继承了父工程的依赖A?
2、还是说,上面那段代码有别的意思?
用parent继承,你这个只是子(姑且这么说,实际上没有继承就没有所谓的父子)项目依赖父项目
参考:https://blog.csdn.net/ZZY1078689276/article/details/78965771