In Eclipse I have two maven projects A and B, where A is a parent for B. The directory structure is the following:
A/pom.xml A/B/pom.xml A/B/...
In addition to "Hide folders of physically nested modules" mentioned above, I've found another simple solution, only by unchecking parent modules when importing Maven project: