Double source folder in eclipse when creating a new maven project

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

enter image description here

This is very undesirable, it takes up additional space, and they are not very well synchronized, for example, src at the bottom contains the "webapp" folder, but src at the top does not work. What is the deal with this double structure? My colleagues who use an older version of eclipse do not see the "java resources" subtext, but I cannot find a way to disable it.

+7
java eclipse maven
source share
2 answers

Try explorer package instead of project explorer. It should still show both src folders, but better.

+4
source share

Anderas B. post the fix on a related issue :

Click on the third right upper button, then โ€œFiltersโ€, and then check โ€œName Filter Filtersโ€ and type โ€œsrcโ€. Then the second src folder is hidden.

__

Only works for maven projects, otherwise all src folders will be hidden.

0
source share

All Articles