Intelij spring boot java file outside of source root
Issue1: create new maven project “prj1” in “parrent1” folder then open “parent1” folder in InteliJ
-
pom.xml show as XML file only
-
cannot create Java class/package/interface
-
Fix1:
- Right click on pom.xml file > Add as Maven Project
- Right click on pom.xml file > Add as Maven Project
Issue2: InteliJ Spring Boot Java file outside of source root (project clone somewhere)
- Fix2: mark “java” folder as source root