I have an eclipse project structure that looks something like this:
eclipse project a project b
All of these projects are Maven pro
If you go to the project properties, pick the item "Deployment Assembly", click "Add..." and choose "Project", you can add the dependent project and the issue should be solved.