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.
本文介绍了一种常见的Maven项目导入Eclipse时出现的问题,即src/main/java文件夹未显示。通过三个简单步骤,包括配置Build Path,检查Order and Export选项以及设置JRE System Library和Maven Dependencies,可以有效解决这一问题。
1686

被折叠的 条评论
为什么被折叠?



