其他分享
首页 > 其他分享> > 导入包报错:Cannot resolve com.xxx

导入包报错:Cannot resolve com.xxx

作者:互联网

构建项目时报错:  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进行下载

注意逗号,因为多个要用逗号隔开

 

 

配置说明:

‘’= everything
external:* = everything not on the localhost and not file based.
repo,repo1 = repo or repo1
*,!repo1 = everything except repo1

配置完成后,还需要在Eclipse中更新配置文件,以生效。

菜单栏Window——Preferencecs——Maven——User Setting–update Settings applyandclose

然后 maven updateproject


结束语:

  如果出现其他ali镜像无法下载,可以将getui-nexus 相应的替换 仓库ID

 

标签:resolve,getui,repo1,xxx,repo,nexus,报错,aliyun,gexin
来源: https://www.cnblogs.com/azoveh/p/13113242.html