Skip to content

Instantly share code, notes, and snippets.

@steinarb
Created May 1, 2020 09:45
Show Gist options
  • Save steinarb/efa89d3b2311bc69298c32a315e005aa to your computer and use it in GitHub Desktop.
Save steinarb/efa89d3b2311bc69298c32a315e005aa to your computer and use it in GitHub Desktop.
Adds feature repo and loads JDBC driver and sonar-collector feature from the boot feature set
#
# Comma separated list of features repositories to register by default
#
featuresRepositories = \
mvn:org.apache.karaf.features/framework/4.2.8/xml/features, \
mvn:org.apache.karaf.features/spring/4.2.8/xml/features, \
mvn:org.apache.karaf.features/enterprise/4.2.8/xml/features, \
mvn:org.apache.karaf.features/standard/4.2.8/xml/features, \
mvn:no.priv.bang.sonar.sonar-collector/sonar-collector-webhook/LATEST/xml/features
#
# Comma separated list of features to install at startup
#
featuresBoot = \
instance/4.2.8, \
package/4.2.8, \
log/4.2.8, \
ssh/4.2.8, \
framework/4.2.8, \
system/4.2.8, \
eventadmin/4.2.8, \
feature/4.2.8, \
shell/4.2.8, \
management/4.2.8, \
service/4.2.8, \
jaas/4.2.8, \
deployer/4.2.8, \
diagnostic/4.2.8, \
wrap/2.6.2, \
bundle/4.2.8, \
config/4.2.8, \
kar/4.2.8, \
${env:JDBC_DRIVER_FEATURE:-postgresql} \
sonar-collector-webhook-with-postgresql
#
# Resource repositories (OBR) that the features resolver can use
# to resolve requirements/capabilities
#
# The format of the resourceRepositories is
# resourceRepositories=[xml:url|json:url],...
# for Instance:
#
#resourceRepositories=xml:http://host/path/to/index.xml
# or
#resourceRepositories=json:http://host/path/to/index.json
#
#
# Defines if the boot features are started in asynchronous mode (in a dedicated thread)
#
featuresBootAsynchronous=false
#
# Service requirements enforcement
#
# By default, the feature resolver checks the service requirements/capabilities of
# bundles for new features (xml schema >= 1.3.0) in order to automatically installs
# the required bundles.
# The following flag can have those values:
# - disable: service requirements are completely ignored
# - default: service requirements are ignored for old features
# - enforce: service requirements are always verified
#
#serviceRequirements=default
#
# Store cfg file for config element in feature
#
#configCfgStore=true
#
# Configuration of features processing mechanism (overrides, blacklisting, modification of features)
# XML file defines instructions related to features processing
# versions.properties may declare properties to resolve placeholders in XML file
# both files are relative to ${karaf.etc}
#
#featureProcessing=org.apache.karaf.features.xml
#featureProcessingVersions=versions.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment