In my parent POM, I have a custom <repository>
as well as a <dependencyManagement>
. I wanted a concrete way of ensuring that any child POMs use the custom repository only when necessary by defining its use in <dependencyManagement>
.
It appears there is a way to include a <repositories>
><repositoryId>
for this purpose, but only in a child POM’s <dependency>
instance, and not where that <dependency>
is defined in the parent POM’s <dependencyManagement>
.
Is there a way to defer this information to the parent POM? On a related note, is it possible to configure a dependency in <dependencyManagement>
to ensure that it ignores all custom repositories and uses the Maven Central Repository only?