Could not create local repository at /var/root/.m2/repository

后端 未结 3 1755
自闭症患者
自闭症患者 2020-12-19 01:49

My local maven repo is here /Users/power/.m2/repository.

But I got this error

[java] [ERROR] Could not create local repository at /var/         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 01:56

    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
    

提交回复
热议问题