Multiple repositories
Each Maven project has its own effective POM file. The effective POM file is the aggregated POM file from the application POM, all parent POM files, and the super POM. Finally, what matters to Maven is the effective POM, not the individual ones. Each individual POM file can have its own repositories defined under the repositories section, but in the effective POM file, there will be one single repositories section, which aggregates all the repositories defined in each POM file.
Note
More details about Maven POM files were discussed in Chapter 2, Demystifying Project Object Model.
When you have multiple repositories defined in the POM, the order in which they are defined matters. Whenever Maven detects that a required artifact ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access