Eclipse Maven showing multiple paths for the same file

后端 未结 3 1039
悲&欢浪女
悲&欢浪女 2020-12-16 00:48

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:<

3条回答
  •  旧巷少年郎
    2020-12-16 01:01

    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

提交回复
热议问题