構建項目時報錯: Cannot resolve com.gexin.platform:gexin-rp-sdk-http:4.1.1.4
gexin-rp-sdk-http:jar:4.1.1.4總是無法下載,百度到的處理方法,記錄一下,方便以后查詢使用。
解決方式:
修改本地maven/config/目錄下的settings.xml文件,在原先配置aliyun鏡像處,修改mirroOf參數值 加上 ,!getui-nexus
標識getui-nexus這個依賴不從aliyun進行下載
注意逗號,因為多個要用逗號隔開。
<mirror> <id>nexus-aliyun</id> <mirrorOf>*,!getui-nexus</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror>
關於上述配置參數的說明:
‘’= everything
external:* = everything not on the localhost and not file based.
repo,repo1 = repo or repo1
*,!repo1 = everything except repo1
配置完成后,還需要在IntelliJ IDEA或Eclipse中更新配置文件,以生效。
菜單欄Window——Preferencecs——Maven——User Setting–update Settings applyandclose
然后 maven updateproject。
結束語:
如果出現其他ali鏡像無法下載,可以將getui-nexus 相應的替換 倉庫ID