0 votes
in Maven - Coalescing Pipeline by
What types of Maven repository?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Apr 7, 2021 in Maven - Coalescing Pipeline by SakshiSharma
0 votes
asked Apr 6, 2021 in Maven - Coalescing Pipeline by SakshiSharma
...