maven share dependencies among different modules

后端 未结 2 1765
刺人心
刺人心 2020-12-21 14:02

I have a project with 5 modules.

2 of the modules have a dependency of hibernate. they are siblings and not parent child hence one cannot inherit another one\'s dep

2条回答
  •  眼角桃花
    2020-12-21 14:55

    Consider using a separate project to model the set of dependencies, and then depend on that project. This is more flexible than trying to model it in your parent hierarchy somehow.

提交回复
热议问题