Is there any setting in Eclipse to show only the Maven project where the file resides?
I have different Maven projects which are modules of a parent Maven project:<
You are probably talking about a kind of duplication between parent project and its sub-modules. In the latest version of Eclipse (from 3.6 maybe and sure from 3.7) there is a new option
Menu Windows >
Item Preferences > Tree item Maven > Option : Hide folders of physically nested modules
This would not work on a existing project. You must delete them (logically) and re-import them