根本原因

依赖托管仓库的库存不足。有的仓库,就是没有团队上传这个依赖。所以多加几个镜像源,总有一个仓库能找到。

解决方案

修改 maven 默认配置文件

"C:\Users\<userName>\.m2\settings.xml"

使用无边无际云 + 华为云 + 阿里云 + 妹吻云,四个依赖仓库,多管齐下。

  • 只要前一个挂掉,就自动从下一个仓库中找。
  • 国内开发者下载超快。
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>boundlessgeo</id>
<repositories>
<repository>
<id>boundlessgeo</id>
<url>https://repo.boundlessgeo.com/main/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>huawei</id>
<repositories>
<repository>
<id>huawei</id>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>aliyun</id>
<repositories>
<repository>
<id>aliyun</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>maven-central</id>
<repositories>
<repository>
<id>maven-central</id>
<url>http://central.maven.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
</profiles> <activeProfiles>
<activeProfile>boundlessgeo</activeProfile>
<activeProfile>huawei</activeProfile>
<activeProfile>aliyun</activeProfile>
<activeProfile>maven-central</activeProfile>
</activeProfiles>
</settings>

Idea 启用(覆盖)自定义的配置 Settings

重启 IDE 出现管理包,默认勾选

然后点击刷新,或者下载源码,转一下就好了。

下载源码之后,就可以看到命名有意义的代码和注释了。比如

    /**
* BETWEEN 值1 AND 值2
*
* @param condition 执行条件
* @param column 字段
* @param val1 值1
* @param val2 值2
* @return children
*/
Children between(boolean condition, R column, Object val1, Object val2);

最新文章

  1. 推荐使用Wiz笔记发表博客
  2. 第二sprint总结
  3. 给 Gradle 配置国内的 Maven 仓库,提高 jar 包下载速度。
  4. show status详解
  5. SQL日期(转)
  6. .net软件自动化测试笔记(API-2)
  7. java中进程与线程--三种实现方式
  8. myEclipse新建jsp,默认编码
  9. SQL Server 查看一个表上的索引
  10. Go成功的项目
  11. ubuntu 下安装crypto
  12. MVC验证10-到底用哪种方式实现客户端服务端双重异步验证
  13. abs与fabs的区别
  14. 【转】python f-string
  15. 【POJ3666】Making the Grade 离散化+DP
  16. 【noip模拟赛7】足球比赛 树
  17. boost.xml_parser中文字符问题 (转)
  18. Jedis cluster集群初始化源码剖析
  19. Photoshop零基础教程集锦,助你快速进阶为大佬,轻松、任性!!!
  20. libgdx学习记录4——舞台Stage

热门文章

  1. 从.net开发做到云原生运维(零)——序
  2. pytest--配置用例执行顺序(pytest_ordering插件介绍)
  3. IDEA使用JDBC链接MySql(java编程)
  4. Kali Linux解压包命令:
  5. 华为eNSP环境,WLAN简介与组网,AP+AC详细配置
  6. [旧][Android] View 工作原理(一)
  7. 强力推荐!五款能让你成为Excel“高手”的Excel插件
  8. 【windows 访问控制】一、访问令牌
  9. C语言每日一题
  10. .NET Core WebApi使用Swagger