nLocating Dependency Artifacts
1.Maven
will attempt to find the artifact with groupId, artifactId and version in local repository
-> ~/.m2/repository/…
2.If
this file is not present, it will be fetched from remote repository.
4.If
your project’s POM contains more than one remote repository, Maven will attempt to
download an artifact from each repository in the order defined in your POM.
5.Once
dependency is satisfied, the artifact is downloaded and installed in your local repository.
Repositories..