0 votes
in Maven - Coalescing Pipeline by
Is there a particular sequence in which Maven searches for dependency libraries?

1 Answer

0 votes
by

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.

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
...