How to solve circular dependencies on maven without adding a third module

background:

 A new module needs to depend on the code of the main module, but the main module needs the logic written by the new module
solve:

The new module can be packaged into the local warehouse first. When the main module refers to the new module, it is referenced in the way of <scope>system</scope>, and the path of the system is written. You can bypass the detection of circular dependencies

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324927843&siteId=291194637