Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Is there a particular sequence in which Maven searches for dependency libraries?
Home
Maven - Coalescing Pipeline
Is there a particular sequence in which Maven searches for dependency libraries?
asked
Apr 7, 2021
in
Maven - Coalescing Pipeline
by
SakshiSharma
Is there a particular sequence in which Maven searches for dependency libraries?
#maven-searches
dependency-libraries
maven-lib
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
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.
...