是否可以加快Maven工件的下载? [英] Is it possible to speed up maven artifacts downloading?

查看:113
本文介绍了是否可以加快Maven工件的下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不幸的是,由于下载了工件,Maven的初始构建非常慢
f.e.我尝试使用curl下载同一罐子-快了3倍!!!
为什么?以及我该如何加快速度?也许maven有一些与工件下载速度有关的配置键?

Unfortunately the maven initial build is very slow due to artifacts downloading
f.e. I've tried to download the same jar using curl - it is 3 times faster!!!
Why? And how I can speed up it? Maybe maven has some config keys related to artifacts downloading speed?

谢谢.

推荐答案

使用本地存储库管理器/镜像/代理.然后,所有下载将与此相反,而不是互联网上的公共存储库.最受欢迎的是:

Use a local repository manager/mirror/proxy. All downloads will then go against this instead against the public repositories on the internet. The most popular ones are:

  • Archiva: http://archiva.apache.org/
  • Artifactory: http://www.jfrog.org/
  • Nexus: http://www.sonatype.org/nexus/

它们非常容易安装和设置,并提供了很多价值.他们中的大多数人也有免费版本.一旦您想扩大范围并将其提供给更多的人使用,只需使用旧的开发盒即可上手并移至真实服务器.

They are fairly easy to install and set up and provide a lot of value. Most of them have free versions as well. Just use an old development box to get started and move to a real server once you want to broaden the scope and make it available to more people.

这篇关于是否可以加快Maven工件的下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆