Duplicate src packages when importing existing project into Eclipse

When I try to import an existing project into eclipse, I see duplicate packages for the src folder (highlighted in red below) Not sure why. How do I fix this?

src folders highlighted in red

+3


source to share


1 answer


This is not a problem, it is actually normal.

Eclipse displays the package view (as indicated in the first red square) as well as the directories inside your project (second square).

As you can see in the screenshot, the first 3 folders contain the package icon (this is because you are using the Package Explorer view ), then under your Maven dependencies you can find the physical folders.

If you don't want to see your package folder, you can use Navigator instead of Package Explorer .



Btw, you can customize filters for your view using:

enter image description here

enter image description here

Then select the filter that you think is appropriate.

+3


source







All Articles