"Sources" path in File->Project Structure->Libraries is wrong
Answered
So I changed by iMac username to a new one successfully. Now when I am trying to build my project and down load packages from the maven repository it installs them successfully in Users/{newUserName}/.m2/repositories. But I get a lot of class not found error in my project. Looking at Libraries in "File->Project Structure->Libraries" I see the path for Sources to be wrong and it is something like Users/{oldUserName}/.m2/repositories... I deleted the .m2 folder and I have re cloned my project again, checked the settings.xml file too, but I still get the same errors and the old user name in the path.
Please sign in to leave a comment.
Try to remove .idea directory in project's root and re-import it.
After that, try File | Invalidate Caches | Invalidate and Restart.
I tried the above, still the same error and the source path has the old user name.
Try to reset IDE configs (File | Manage IDE Settings | Restore Default Settings)