一、確認Idea Maven配置
1. maven home path可以選擇為本地maven安裝目錄,重新選擇User Settings file,選擇maven home path/conf/settings.xml文件
2. 將settings.xml重新配置到本地/Users/xxxx/.m2/路徑下(windows用戶是C://用戶//xxx//.m2)路徑下
二、確認setting.xml文件中的mirror配置信息
1. 打開 倉庫服務 (aliyun.com) ,根據首頁可以找到maven/gradle地址
2. 根據對應的格式,復制粘貼即可
三、配置文件中增加
<activeProfiles> <activeProfile>profileid</activeProfile> </activeProfiles>