Maven cyclic dependency

后端 未结 2 1724
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-26 18:43

my maven project has multiple maven modules. Two of those modules (product and feature) are dependent on each other. When I include the modules as dependencies in the pom files,

2条回答
  •  执念已碎
    2021-01-26 19:31

    Design smell.

    Refactor your modules. Basically everything which is needed in both modules should go into a common dependency. You cannot have cycles in your dependency tree, it just won't work.

提交回复
热议问题