Google News
logo
Java Maven - Interview Questions
Explain the various types of Maven Repositories.
There are three types of Maven repositories.
 
They are :
 
* Local Repository : This is placed in our local machine generally in the .m2 directory. This is generated once we are able to execute a Maven command successfully. All the project dependencies reside here. Once Maven scans the pom file, it first searches for its dependencies in the local repository.

* Central Repository : This is supplied by Apache Maven. It contains most of the routinely used libraries. Once any of the dependencies are not found in the local repository, then Maven connects to a central repository.

* Remote Repository : Sometimes companies develop their own custom repository comprising of their project artifacts, jars, and libraries. This is a type of repository that remains private for use inside that organization.
Advertisement