How to resolve cyclic dependency in Maven?

后端 未结 3 1784
余生分开走
余生分开走 2020-11-27 16:07

How can we resolve a Maven cyclic dependency?

Suppose A is the parent project and B and C are child projects. If B is dependent on C and C is dependent on B, is ther

3条回答
  •  独厮守ぢ
    2020-11-27 16:32

    Creating a new project is indeed one solution.

    Dependency Inversion is the second possible solution.

    Refer to here for the Acyclic Dependency Principle.

    And here for the Dependency Inversion Principle.

提交回复
热议问题