What is the sequence in which Maven searches for dependency libraries?

Following is the search pattern
Search for dependency in the local repository, if not found, move to step 2 else do the further processing
Search for dependency in the central repository first, if not found and the remote repository is mentioned then move to step 4 else it is downloaded to the local repository for future reference
If a remote repository has not been mentioned, Maven simply stops the processing and throws an error (Unable to find dependency)
Search for dependency in the remote repository first, if found it is downloaded to the local repository for future reference otherwise Maven is expected to stop processing and throws an error

Author: Mahesh

Technical Lead with 10 plus years of experience in developing web applications using Java/J2EE and web technologies. Strong in design and integration problem solving skills. Ability to learn, unlearn and relearn with strong written and verbal communications.