下载地址
https://maven.apache.org/download.cgi
解压地址
D:\soft\apache-maven-3.8.7\apache-maven-3.8.7
设置系统变量 (我的系统是英文版的)
![](https://img-blog.csdnimg.cn/img_convert/ee7df92fccbd927a86871b7417ba77e6.png)
![](https://img-blog.csdnimg.cn/img_convert/599a497901b8393d9735daf3a2b1cdbb.png)
![](https://img-blog.csdnimg.cn/img_convert/e4c738ac49689d7685611bd66e06d09a.png)
![](https://img-blog.csdnimg.cn/img_convert/a9295c3d542641ab2df45a60ee2202e0.png)
验证maven是否安装成功
打开cmd 随便一个目录下
mvn -version
![](https://img-blog.csdnimg.cn/img_convert/154eb86fb5e2c63fefad65ef77d3caae.png)
配置maven仓库
新建一个maven-repository
![](https://img-blog.csdnimg.cn/img_convert/1b7c9a39a26fbc6ad67b7466e26094de.png)
b. 添加自己的maven仓库地址
D:\soft\apache-maven-3.8.7\apache-maven-3.8.7\conf\setting.xml文件
<localRepository>D:\soft\apache-maven-3.8.7\maven-repository</localRepository>
![](https://img-blog.csdnimg.cn/img_convert/b590ef3130f70e07cc5e90f515941684.png)
c. 3.配置镜像(采用国内阿里云的镜像下载依赖会快很多)
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
![](https://img-blog.csdnimg.cn/img_convert/36495751fed8cc72e44ff3c9dd630ed4.png)
d. 配置JDK
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
![](https://img-blog.csdnimg.cn/img_convert/5c5a19e4432c73a8de94954118cfbeb6.png)
e. 配置完成
cmd 运行 mvn help:system成功
![](https://img-blog.csdnimg.cn/img_convert/ab27c2e4808f3594c3885331ba8f061f.png)