...
Remark : The path is relative to the Apache Karaf installation directory
Service configuration
A simple configuration file located in {{\ Wiki Markup [FELIX:karaf
\]/etc/org.apache.karaf.features.cfg
}} can be modified to customize the behavior when starting the Kernel for the first time.
This configuration file contains two properties:
featuresBoot
: a comma separated list of features to install at startupfeaturesRepositories
: a comma separated list of feature repositories to load at startup
...
For example, org.ops4j.pax.url.mvn.repositories
is a comma separate list of repository URLs specifying those remote repositories to be checked. So, to replace the defaults with a new repository at http://www.example.org/repo
on the local machine:
Code Block |
---|
karaf@root:/> config:edit org.ops4j.pax.url.mvn karaf@root:/> config:proplist service.pid = org.ops4j.pax.url.mvn org.ops4j.pax.url.mvn.defaultRepositories = file:/opt/development/karaf/assembly/target/apache-felix-karaf-1.2.0-SNAPSHOT/system@snapshots org.ops4j.pax.url.mvn.repositories = http://repo1.maven.org/maven2, http://people.apache.org/repo/m2-snapshot-repository<at:var at:name="snapshots" />noreleases, http://repository.ops4j.org/maven2, http://svn.apache.org/repos/asf/servicemix/m2-repo below = list of repositories and even before the local repository karaf@root:/> config:propset org.ops4j.pax.url.mvn.repositories http://www.example.org/repo karaf@root:/> config:update |
...