My java root project has source code and maven modules it depends on. One of these modules A has a cyclic dependency with the root project. What would be a recommended way to get rid of this cyclic dependency?
UPD: I have solved it already before posting a question, but decided to share.