2

I have usually seen that when someone uses Maven on a company network to download dependencies, then user is redirected to the JFrog Artifactory or any other, instead of downloading dependencies from official Maven Central Repository.

What's the benefits to companies/organisations using other Repositories like JFrog?

4
  1. Saved bandwith and faster downloads: Artifactory stores the artifacts that are downloaded from maven central. So if another developer needs the same dependencies they don't need to be downloaded again from maven central but instead they can be delivered from the local artifactory instance. This makes downloading faster because company networks are usualy faster then the internet connection and it also saves bandwith.
    As example imagine that a developer adds a new dependency to a project. This dependency then needs to be downloaded into the local maven cache of every other developer that is working on the same project. On large projects with a lot of developers this means that the dependency might be downloaded 30 times.
  2. Stable builds: Dependencys might be removed from maven central. If you have them in your local artifactory instance the project who depends on it can still be build.
  3. Easier maintenance: Another benefit that has nothing to do with maven: Artifactory provides several types of repositories like for Docker or Vagrant. So instead of setting up a maven artifacts repository, a docker registry and some kind of vagrant store you could create three repositories in artifactory. Thus you only need to maintain one application (artifactory) instead of three separate applications.

Some or all of these benefits might also apply to other binary repository managers but as I only know artifactory I can't say something about that.

3
  • @Thanks for a good answer.
    – jerry383
    Apr 19 at 13:56
  • 1
    @jerry383 If my answers has satisfied your needs I would be happy if you mark it as accepted answer so it doesn't pop up in the unanswered questions list. Apr 20 at 16:20
  • @jadephantom Thanks for your excellent answer. I would also highlight security. I think that's often a driving factor in adopting private repos.
    – chicks
    Apr 20 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.