依赖托管仓库的库存不足。有的仓库,就是没有团队上传这个依赖。所以多加几个镜像源,总有一个仓库能找到。
解决方案修改 maven 默认配置文件
"C:Users
使用无边无际云 + 华为云 + 阿里云 + 妹吻云,四个依赖仓库,多管齐下。
只要前一个挂掉,就自动从下一个仓库中找。国内开发者下载超快。
boundlessgeo boundlessgeo https://repo.boundlessgeo.com/main/ true true always huawei huawei https://mirrors.huaweicloud.com/repository/maven/ true true always aliyun aliyun http://maven.aliyun.com/nexus/content/groups/public/ true true always maven-central maven-central http://central.maven.org/maven2/ true true always boundlessgeo huawei aliyun maven-central
Idea 启用(覆盖)自定义的配置 Settings
重启 IDE 出现管理包,默认勾选
然后点击刷新,或者下载源码,转一下就好了。
下载源码之后,就可以看到命名有意义的代码和注释了。比如
Children between(boolean condition, R column, Object val1, Object val2);


![[使用多仓库解决] idea maven 下载源码出现:Cannot download sources Sources not found for: xxx [使用多仓库解决] idea maven 下载源码出现:Cannot download sources Sources not found for: xxx](http://www.mshxw.com/aiimages/31/782023.png)
