Why we should not store jars in CVS or any other version control system instead of Maven repository

Maven recommends storing jars in local repository instead of CVS or any other version control system. There are following advantages of storing it in Maven repo vs. CVS:

  • Less Storage: A repository is very large, but it takes less space because each JAR is stored only in one place. E.g. If we have 10 modules dependent on Spring jar, then they all refer to same Spring jar stored in local repository.
  • Quicker Checkout: Project checkout is quicker from local repository, since there is not need to checkout jars if they are already present in repo.
  • No need for versioning: There is no need to version JARS since external dependencies do not change so often.
Read the full book at www.amazon.com
Posted in Maven, Maven Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*