有时候修改了User Settings,而下边的Local Repository却无法相应改变
其原因可能是settings.xml文件中未配置本地仓库的地址
解决方法:在settings.xml文件中增加本地仓库地址
如:下载的本地仓库repository文件解压在了D:\apache-maven-3.3.9-bin\repository中
可以如下设置:找到apache-maven-3.3.9-bin-》apache-maven-3.3.9-》conf-》settings.xml,在settings.xml文件中找到
<!-- localRepository | The path to the local repository maven will use to store artifacts. | | Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>-->
在其下边增加<localRepository>repository解压的地址</localRepository>
结果如图: