读取pom.xml出现Could not transfer artifact org.springframework.boot:spring-boot-starter-par
这里写自定义目录标题
读取pom.xml出现Could not transfer artifact org.springframework.boot:spring-boot-starter-par
本人因为重装系统,重新安装了idea,从github下载项目时pom大片爆红无法启动,尝试本地创建新项目同样爆红。maven为自己设置的。
问题原因
win10新版本默认取消了C盘的写入权限,提高了安全性。
因此可以查看本地的repository,发现是空的。
解决方法
既然没有权限就给他权限好了,选中maven所在的文件夹右键选择属性,然后选择安全
选择编辑
选中Users,然后在下方勾选写入,一路确定即可
检查idea,重新加载maven,不再爆红,本地repository中也成功下载对应的jar包