How to resolve cyclic dependency in Maven?

后端 未结 3 1783
余生分开走
余生分开走 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:37

    I will introduce the way how I fixed those issues of circular dependencies.

    I have two modules that includes each other. I removed dependencies on each side and setup RabbitMQ messaging system and create direct exchange. So when I need something from module1 I send message to RabbitMQ and get response and process data from module2. I think this is the better way of integrating components and it's loose integration.

提交回复
热议问题