After importing a maven project with IDEA, the main.java project structure caused a compilation exception

when importing maven projects

clipboard.png
main.javapackage

clipboard.png
but colleagues do not have this kind of problem when using it. Has any god ever encountered a similar situation? there is no train of thought.

Mar.21,2021

src right-> Mark Directory as-> unmark.
java right-> Mark Directory as-> Sources root

Menu