It's perfectly safe to delete the folder .m2/repository
as maven will re-download all the needed dependencies when needed except for your local projects. It there any other folder under .m2
taking space?
For your local projects, maven will complain about not finding them. In that case, you simply need to re-compile them and install them by running mvn clean install
in each project folder. They will get uploaded to the repository.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…