9

I'm using Eclipse kepler to make a maven 2 or 3 project. I used the "webapp" archetype to start with a clean empty project, and I followed some simple helloworld tutorials. However, I noticed that in eclipse my src folder is shown twice, as seen in the picture below:

enter image description here

This is very undesirable, it takes up additional space and they are not very well synchronized, for example the src on the bottom contains the "webapp" folder, but the src on top doesn't. What's the deal with this double structure? Colleagues of me, who use an older version of eclipse, don't see the "java resources" subtab but I can't find a way to turn it off.

user1884155
  • 3,616
  • 4
  • 55
  • 108
  • 3
    Try package explorer instead of project explorer. It should still show both src folders, but in a nicer way. – atamanroman Apr 13 '15 at 15:35
  • That's because there are folders below your `src` folder that are not source folders, like `webapp`. Where should that folder be shown otherwise? About the `Java Resources` group, that seems to be specific to the "webapp" archetype. – tobias_k Apr 13 '15 at 15:38
  • @atamanroman thanks, that view is indeed better for me because it doesn't show duplicate files or spurious metadata! – user1884155 Apr 13 '15 at 16:09
  • @user1884155 Glad that I could help. Please accept my answer then. – atamanroman Apr 14 '15 at 08:06

2 Answers2

5

Try package explorer instead of project explorer. It should still show both src folders, but in a nicer way.

atamanroman
  • 11,607
  • 7
  • 57
  • 81
4

Anderas B. posted a fix on a related question:

Click the dropdown arrow in the upper right corner of the Package Explorer, then "Filters..." and then check "Name filter patterns" and write "src". Then the second src folder is hidden.

__

Works only for maven projects, otherwise all src folders are hidden.

Danny Bullis
  • 3,043
  • 2
  • 29
  • 35
lleo
  • 155
  • 1
  • 9