Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven and a *VERY SLOW* internet connection: how to speed up download? [closed]

Tags:

java

maven

My internet connection is VERY SLOW (< 50kbps, most of the time) and, because of that, I would like to know if there is a way to speed up the Maven download of the project's dependencies? I'm looking for a feature on Maven such as partitioned download, similar to Firefox's DownThemAll, Free Download Manager, Axel (linux) etc.

thanks in advance.

like image 846
Davi Avatar asked Oct 23 '22 13:10

Davi


1 Answers

Configure yourself a local repository, which knows about the remote ones, and point your maven client to your local repo.

Your first download of each dependency will still be slow, as it still uses the slow internet connection, but subsequent ones will use the local cache.

Of course, if you depend mainly on SNAPSHOT versions, this won't give you much benefit, but for ones that don't change much, you'll win big time.

like image 184
Bill Michell Avatar answered Oct 31 '22 14:10

Bill Michell