You can go to Preferences
-> Build, Execution, Deployment
-> Build Tools
-> Maven
-> Importing
and check the box that says Import Maven projects automatically
.
In Mac, you can do Command + Shift + A
, then enter the action reimport
, then click on Reimport all Maven projects
.