# SpringBoot2.7新建项目Maven下载依赖出错
### 错误截图
{{< image src="/images/all/springboot-error.png" caption="">}}
### 解决方案
自行安装本地`Maven`,`IDEA`中修改下面红框中的三个位置,分别对应`Maven`的安装路径、`settings.xml`位置、本地`repository`的位置。
{{< image src="/images/all/local_maven.png" caption="">}}
下面是我的`Maven`的`settings.xml`,`Maven`版本为`3.6.3`,`JDK`版本为`1.8`,`SpringBoot`版本为`2.7.1`,已换阿里源
```xml
D:\apache-maven-3.6.3\repository
alimaven
aliyun maven
https://maven.aliyun.com/repository/public
central
alimaven-central
aliyun maven central
https://maven.aliyun.com/repository/central
central
alimaven-spring
aliyun maven-spring
https://maven.aliyun.com/repository/spring
central
central
Maven Repository Switchboard
https://repo1.maven.org/maven2/
central
jboss-public-repository-group
central
JBoss Public Repository Group
http://repository.jboss.org/nexus/content/groups/public
spring-snapshots
central
Spring Snapshots
https://repo.spring.io/snapshot
spring-milestones
central
Spring Milestones
https://repo.spring.io/milestone
maven-default-http-blocker
external:http:*
Pseudo repository to mirror external repositories initially using HTTP.
http://0.0.0.0/
true
jdk-1.8
true
1.8
1.8
1.8
1.8
```