Prefer local features 41/79241/3
authorStephen Kitt <skitt@redhat.com>
Fri, 4 Jan 2019 16:51:15 +0000 (17:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Jan 2019 10:28:24 +0000 (11:28 +0100)
commit63902f70d2e752d5c95d08610336e711c4f14461
tree9ae7ee7a003986b40c8d4fa770ba81114cd9622d
parent2c2e883a5e86bb3c5c572932d27c22c45904fa65
Prefer local features

PopulateLocalRepoMojo should prefer features from the local repository
(the Karaf installation repository, typically) to those in the system
repositories: this allows features to be patched, and the patches
taken into account when resolving dependencies.

(Adding the local repository to Aether’s repositories doesn’t have the
intended effect, because the feature dependencies have generally
already been resolved, and are resolved again from the cache when
PopulateLocalRepoMojo runs.)

JIRA: ODLPARENT-189
Change-Id: I232115e0fcdef1ae17c22a17028021f825573e31
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
karaf-plugin/src/main/java/org/opendaylight/odlparent/AetherUtil.java
karaf-plugin/src/main/java/org/opendaylight/odlparent/FeatureUtil.java
karaf-plugin/src/main/java/org/opendaylight/odlparent/PopulateLocalRepoMojo.java