What do you mean by Maven repository and its types?

devquora
devquora

Posted On: Feb 22, 2018

 

A directory of packaged JAR file which also consists of pom.xml file is called a Maven repository. Dependencies are being searched in the Maven repositories. There are basically three types of repositories. They are –
  1. Local repository: the local repository of Maven is located in the local system. It is created in the system when any Maven command is run.
  2. Central repository: the central repository is located on the web. The apache Maven community creates this repository by itself.
  3. Remote repository: the remote repository is also located on the web. It consists of such libraries which are missing from the central repository.

Maven first searches for the local repository, then the central and then the remote repository. If dependencies are not found, then Maven stops the execution and throws an error.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Maven interview questions

    What do you understand by maven software?

    A powerful project management tool based on project object model is known as maven software. It helps in building proje..

    Maven interview questions

    What are some problems which we face while the development of a project when Maven is not used?

    Following is a list of some problems which we face while developing a project when Maven is not used: –Addition of ..

    Maven interview questions

    What are the tasks which are performed by Maven?

    All the problems which are mentioned above are simplified by Maven and it performs various tasks which are as follows: ..