Maven ProjectA has ProjectB as dependency. Now ProjectB needs one class from ProjectA . So ProjectB also needs ProjectA as dependency.
Unfortunately this gives cyclic dep