springframework如何搭建镜像服务器

How to build a mirror server for springframework

在国内使用Springframework Repo central是一件很痛苦的事情。我正在考虑为springfw repo构建一个镜像。

就像 maven center repo 周围有很多镜子。

而且我知道 Maven 中心和 springfw 存储库的结构都是 artifactory 来自 Jfog.

所以我觉得可以给springfw设置一个镜像对不对?

我以前用 Sonatype Nexus 来做这个,它有一个开源版本,你可以 运行 自己。

我建议在 proxy mode 中设置它,这意味着您将从中获取所有工件,然后它将第一次从上游镜像中获取工件,然后从本地镜像提供它们将来缓存。