Skip to content

Commit

Permalink
Edit etc/org.ops4j.pax.url.mvn.cfg instead of setting system property
Browse files Browse the repository at this point in the history
  • Loading branch information
reta committed May 12, 2022
1 parent e15601a commit adfb22f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adfb22f

Please sign in to comment.