recently imported a maven project, and there are 4 sub-maven projects below. It is found that the java file in the child maven project cannot automatically depend on the java class of the parent maven project.
I thought to myself to build a new father-son maven project and compare it.
then creates a new multi-module aggregated maven project using eclipse. Parent project: top, child module:module1. If you find that you can"t create new package and java files in the top project, prompt: is not a java project.
but idea is fine. I don"t know why.