From adfb22fb899c1c5a7324cab5530f07eea038955f Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Wed, 11 May 2022 23:02:09 -0400 Subject: [PATCH] Edit etc/org.ops4j.pax.url.mvn.cfg instead of setting system property --- .../cxf/systest/sts/itests/BasicSTSIntegrationTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/sts/systests/sts-itests/src/test/java/org/apache/cxf/systest/sts/itests/BasicSTSIntegrationTest.java b/services/sts/systests/sts-itests/src/test/java/org/apache/cxf/systest/sts/itests/BasicSTSIntegrationTest.java index 0f699f8228c..f7c09e0d6bb 100644 --- a/services/sts/systests/sts-itests/src/test/java/org/apache/cxf/systest/sts/itests/BasicSTSIntegrationTest.java +++ b/services/sts/systests/sts-itests/src/test/java/org/apache/cxf/systest/sts/itests/BasicSTSIntegrationTest.java @@ -60,10 +60,8 @@ public Option[] getConfig() { systemProperty("BasicSTSIntegrationTest.PORT").value(port), editConfigurationFilePut("etc/org.ops4j.pax.web.cfg", "org.osgi.service.http.port", port), - when(!localRepository.isEmpty()) - .useOptions(systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository)), - when(!localRepository.isEmpty()) - .useOptions(systemProperty("org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote").value("true")), + when(!localRepository.isEmpty()).useOptions(editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg", + "org.ops4j.pax.url.mvn.localRepository", localRepository)), //DO NOT COMMIT WITH THIS LINE ENABLED!!! KarafDistributionOption.keepRuntimeFolder(), //KarafDistributionOption.debugConfiguration(), // nor this