Eclipse Maven showing multiple paths for the same file

后端 未结 3 1044
悲&欢浪女
悲&欢浪女 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 00:52

    I just had the same issue and what worked for me was to select Filter Duplicated Resources in the Open Resource dialog:

    Another (unrelated) useful feature is to hide submodule-folders from the parent-project in the package explorer.
    This can be done by using the Maven modules filter in the menu of the package explorer:

    Tested with Eclipse 2019-06 (4.12.0)

提交回复
热议问题