dependencies - how to resolve maven cyclic dependency -


how can resolve maven cyclic dependency. suppose parent project , b , c child projects. if b dependent on c , c dependent on b, there way resolve cyclic dependency other having different project.

thanks in advance, have searched in forums, not exact solution. please let me know if there possibility.

maven not allow cyclic dependencies between projects, because otherwise not clear project build first. need rid of cycle. 1 solution 1 mentioned, create project. 1 move classes b c or vice versa when helps. or correct merge project b , c 1 project if there no need have 2 of them.

but without knowing , analyzing why projects depend on each other it's kinda difficult suggest best solution.

so suggest can use tools jdepend or intelij analyse tool find problematic classes , based on them find better design software.

most of time, create interface module , and implementation module, gets rid of cycles.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -