打开maven下的conf-settings.xml,找到
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>D:\downloads\maven</localRepository>
-->
节点后增加<localRepository> </localRepository>的仓库位置
例如我的修改为 <localRepository>D:\downloads\maven\.m2\repository</localRepository>