When you create a Web application using Maven and import it in Eclipse, you may not see src/main/java folder in the Project or Package Explorer.
maven eclipse missing folder src main java
You can fix it using the following steps :
Step 1:
Right click on the Maven Project, select Build Path and then Configure Build Path
Step 2:
In Order and Export tab, you can see the message like ‘2 build path entries are missing’
src main java buildpath missing
Step 3:
Select ‘JRE System Library’ and ‘Maven Dependencies’ checkbox and click OK.
Now you should see src/main/java and src/test/java folders in Package Explorer or Project Explorer.