Add default repository to defaultRepositories 80/85880/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 18 Nov 2019 17:42:35 +0000 (18:42 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 20 Nov 2019 09:09:16 +0000 (09:09 +0000)
commitac48ed0e7fa641f4014af66bebcdf5e99c3a33c8
treea54bd93e16ef289f7f876ecc849b94aba38049c8
parent449cf86601a496914c819e670f9804ee64f13ced
Add default repository to defaultRepositories

SFT reconfigures the repository layout such that Karaf ends up
ignoring its default system repository, which contains various
edits we are doing for the baseline distribution.

This leads to SFT running actually against vanilla Karaf
definitions, which is not what we want.

We need to override the repository config to ensure we pick up
the maven repository, so we can find things like pax-exam, etc.

Fix this by setting org.ops4j.pax.url.mvn.defaultRepositories
to point to karaf.default.repository, so that it is consulted
*before* all other repositories.

JIRA: ODLPARENT-209
Change-Id: I6c0fe2716ca1f4aaf695f20dc142838e13cc9e81
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 032a0f970970aba54318360828c10f30861a463e)
features-test/src/main/java/org/opendaylight/odlparent/featuretest/SingleFeatureTest.java