2

Today when I open my project, there is some problem in my folder hierarchy, you can see the below, there is no packages here:

enter image description here

In general, the common folder hierarchy should like this:

EDIT

I have tried reopen the project and reopen my IntelliJ IDEA. Both do not work.

user7693832
  • 6,119
  • 19
  • 63
  • 114

1 Answers1

1

Delete .idea directory and *.iml files, then Open pom.xml from the Welcome screen.

This issue can happen if .idea/modules.xml is corrupted or if any of the *.iml files are not found/invalid.

Reimporting the project from Maven should help. In case it doesn't work, refer to this answer for diagnostics.

Community
  • 1
  • 1
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904