修改conf/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>
-->
```
在下面添加:
```xml
<localRepository>D:\Maven\repository</localRepository>
```
> 个人习惯放在maven安装目录下。