DntFrgtDSemiCln
DntFrgtDSemiCln

Reputation: 1289

Duplicate src packages when importing an existing project in Eclipse

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

src folders highlighted in red

Upvotes: 6

Views: 3203

Answers (1)

Federico Piazza
Federico Piazza

Reputation: 31035

This is not an issue, actually It's fine.

Eclipse displays the package view (as you pointed in the first red square) and also the directories inside your project (the second square).

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

If you don't want to see your package folder you may consider using Navigator view instead of Package Explorer.

Btw, you can configure filters for your view by using:

enter image description here

enter image description here

Then select the filter you consider appropiated.

Upvotes: 5

Related Questions