Eclipse+Maven src/main/java not visible in src folder in Package Explorer

前端 未结 16 2104
情深已故
情深已故 2020-12-23 09:19

I\'m wondering why I can\'t see following folders in src node in Package Explorer

src/main/java
src/main/resources
src/test/java
src/test/resources
         


        
16条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 09:45

    If you are looking for Simple/quicker way, you can follow this solution.

    1. Right click on your project.
    2. Goto > Build Path > Configure Build Path > Java Build Path
    3. Goto 'Source' tab, there, you can see like <>/src/main/java(missing).
    4. Click on it and remove.
    5. Click on Apply and Close.
    6. Now, right click on project and >New > Source folder > add source folder "src/main/java".

    happy learning and do not forget to upvote :)

提交回复
热议问题