导入包报错: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进行下载
注意逗号,因为多个要用逗号隔开
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*,!jeecg,!jeecg-snapshots,!getui-nexus</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>