2024.11.17(maven )

父模块的 pom.xml
在父模块的 pom.xml 文件中,使用 元素列出所有子模块:

my-child-module1
my-child-module2

这个配置告诉Maven父模块下有哪些子模块。

子模块的 pom.xml
在每个子模块的 pom.xml 文件中,需要指定父模块的信息。例如:

com.example
my-parent-module
1.0-SNAPSHOT

my-child-module1
这样,每个子模块都知道它们的父模块是谁,以及从父模块继承的信息。

posted @ 2025-01-10 23:15  ysd666  阅读(17)  评论(0)    收藏  举报