配置阿里云下载:还是在 Maven 根目录下的 conf/setting.xml
;
Ctrl + F 搜索 <mirrors>
,在 <mirrors>
下新加一个阿里云的镜像地址:
alimaven
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/
到此为止,Maven 与 仓库配置以及完成。
打开 IDEA,点击开始右下角的 Configure
-> Settings
进入设置;
设置界面:Build, Execute, Deployment
->Build Tools
->Maven
;
修改 Maven home directory
: D:\JavaDevelop\Maven\apache-maven-3.5.0
修改 User settings file
: D:\JavaDevelop\Maven\apache-maven-3.5.0\conf\settings.xml
只要 settings.xml
中配置的正确,Local repository
会被自动识别到;
至此,I