Eclipse file search finds the same file multiple times

后端 未结 11 1352
生来不讨喜
生来不讨喜 2020-12-23 20:22

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/...
11条回答
  •  情书的邮戳
    2020-12-23 21:12

    As a new joiner, still couldn't comment but I'd really like to add something to the best answer. It works! It not only removed the duplicate files for me (one from child module and one from parent module), it also removed the class files from parent module).

    But it added the folder to my .gitignore which will cause problem for new files/directories added later. I just reverted the change to .gitignore and it still works in eclipse.

    Find this answer to disable auto change of .gitignore EGit and Eclipse modifies .gitignore file but it should not

提交回复
热议问题