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

前端 未结 16 2106
情深已故
情深已故 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:31

    My problem was kind of the same at first and then a little different in the sense that when /java folder showed up, it was deep down in a nested folder somewhere in src/main/resources/java.

    Initallially the problem was being in the Package Explorer and not in the Project Explorer as many people have talked about. So,

    • a. right-click on your project root
    • b. show in, and select Project Explorer

    However, the main problem was I missed to notice a checkbox at the second step of Maven Project Creation from the wizard. That got me created a complicated structure and not a clean direct one.

    Once I marked it checked I got a clean project structure as what asked.

提交回复
热议问题