1.window->Preferences
2.Maven-> User Setting
3.全局配置Global Settings/用户配置 User Settings 修改为自己的配置
本地仓库切换为本地自定义文件夹
<localRepository>D:\maven\myrepository</localRepository>
源切换为阿里maven源
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf>
</mirror>