Login
Remember
Register
Ask a Question
What types of Maven repository?
0
votes
asked
Apr 7, 2021
in
Maven - Coalescing Pipeline
by
SakshiSharma
What types of Maven repository?
#maven-repository
maven-repo-types
maven
maven-interview-questions
maven-mcq-questions
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Apr 7, 2021
by
SakshiSharma
Maven repositories are of three types –
Local: Maven local repository is a folder location that is present on your machine. It is created when you run any maven command for the first time. Maven local repository is a location where you can find your project’s all dependencies (library jars, plugin jars etc).
Central: It is a repository provided by the Maven community. It contains a huge collection of commonly used libraries. When Maven does not find any dependency in local repository, it starts searching in central repository using the following URL:
http://repo1.maven.org/maven2/
.
Remote: Sometimes, Maven is not able to find a mentioned dependency in the central repository as well then it stops the build process and an output error message is displayed on the console. To avoid such a situation, Maven provides the idea of Remote Repository which is nothing but the developer’s own custom repository containing required libraries or other project jars.
...