My local maven repo is here /Users/power/.m2/repository.
But I got this error
[java] [ERROR] Could not create local repository at /var/
Deleting the .m2 folder manually helps sometimes
Your .m2 folder might be corrupted and it doesn't permit you to create new or replace existing with new .m2 folder, so delete the existing .m2 folder manually by entering the below commands.
To view the existing .m2 folder
ls -ltra
To Delete it manually
sudo rm .m2