Skip to content

Commit adfb22f

Browse files
committed
Edit etc/org.ops4j.pax.url.mvn.cfg instead of setting system property
1 parent e15601a commit adfb22f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

services/sts/systests/sts-itests/src/test/java/org/apache/cxf/systest/sts/itests/BasicSTSIntegrationTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ public Option[] getConfig() {
6060
systemProperty("BasicSTSIntegrationTest.PORT").value(port),
6161
editConfigurationFilePut("etc/org.ops4j.pax.web.cfg",
6262
"org.osgi.service.http.port", port),
63-
when(!localRepository.isEmpty())
64-
.useOptions(systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository)),
65-
when(!localRepository.isEmpty())
66-
.useOptions(systemProperty("org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote").value("true")),
63+
when(!localRepository.isEmpty()).useOptions(editConfigurationFilePut("etc/org.ops4j.pax.url.mvn.cfg",
64+
"org.ops4j.pax.url.mvn.localRepository", localRepository)),
6765
//DO NOT COMMIT WITH THIS LINE ENABLED!!!
6866
KarafDistributionOption.keepRuntimeFolder(),
6967
//KarafDistributionOption.debugConfiguration(), // nor this

0 commit comments

Comments
 (0)