src/main/webapp directory not recognized by Eclipse
问题 I use m2eclipse to import Maven Java projects in Eclipse. It fails to recognize src/main/webapp as a source directory. Graphically in the package explorer (or when I look into Java-Build-Path in the project's properties), this directory isn't in the list of sources folder (while src/main/java or src/main/resources do). To access it, I have to look directly into the src/ directory, and start unfolding... Not very convenient! However, if I run maven install , the resources are copied to the