I have root projects and followed by sub modules. These modules are interdepended, When i run maven test for one module it throws class not found exception.

1. ProjectA   

-- ProjectSubA   

-- ProjectSubB   

-- ProjectSubC (Dependencies ProjectA and ProjectB)

ProjectSubC has Maven Test, So when it runs the class are inside ProjectSubB and ProjectSubA. How to resolve this issue now.