Is it possible to speed up maven artifacts downloading?

后端 未结 5 1301
刺人心
刺人心 2021-01-04 01:16

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? A

5条回答
  •  忘掉有多难
    2021-01-04 02:06

    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.

提交回复
热议问题