6

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

1 Answer 1

5

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.

2
  • Thanks Navigator view is what I am looking for ! Commented Aug 15, 2014 at 17:40
  • I am in the same issue, but when I edit in one place the other is not updated. Very weird...
    – dhalfageme
    Commented Aug 20, 2019 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.