1.下載maven安裝包:官網鏈接(選擇自己需要的版本)
2.解壓安裝包到自己指定的目錄
3.配置環境變量
新建系統變量
MAVEN_HOME C:\Soft\apache-maven-3.6.0
配置系統變量(添加環境變量)
Path %MAVEN_HOME%/bin
4.測試:

自定義本地倉庫位置 [修改conf/settings.xml文件]
修改<localRepository>標簽 目錄要自己創建

添加阿里雲倉庫 [修改conf/settings.xml文件]
在<mirrors>標簽 ,添加<mirror>
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
