A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
To upgrade our container to use a new base Karaf version, follow these steps.
Download and unpack the new Karaf tar.gz file.
Run these commands to see the differences in the Karaf etc files:
diff -r $KARAF_DIR/etc $SRC_DIR/container/karaf/src/main/filtered-resources/etc
diff -r $KARAF_DIR/etc $SRC_DIR/features/container/minion/src/main/filtered-resources/etc
diff -r $KARAF_DIR/etc $SRC_DIR/features/container/sentinel/src/main/filtered-resources/etc
Apply any relevant changes to the files inside each etc file.
Update the karaf-maven-plugin
configuration inside
$SRC_DIR/container/karaf/pom.xml
so that it matches the
default Karaf assembly from https://github.com/apache/karaf/blob/karaf-$KARAF_VERSION/assemblies/apache-karaf/pom.xml
with our additions.
Update the karaf-maven-plugin
configuration inside
$SRC_DIR/features/minion/container/karaf/pom.xml
so that it
matches the default Karaf assembly from https://github.com/apache/karaf/blob/karaf-$KARAF_VERSION/assemblies/apache-karaf/pom.xml
with our additions.
Update the list of repo features inside
$SRC_DIR/container/features/pom.xml
,
$SRC_DIR/core/test-api/karaf/pom.xml
, and
$SRC_DIR/opennms-full-assembly/pom.xml
.
Update the Karaf version inside
$SRC_DIR/core/test-api/karaf/src/main/java/org/opennms/core/test/karaf/KarafTestCase.java
.
Update $SRC_DIR/pom.xml
with new value for
<karafVersion>
property.
Update $SRC_DIR/pom.xml
with new value for
<felixConfigadminVersion>
property.
Update $SRC_DIR/smoke-test/pom.xml
with new value
for <karafVersion>
property.
Update $SRC_DIR/features/config/osgi/del/pom.xml
with new value for pax-logging-apifeatures
property.
See commit dea910701c3f48e367636b507fc575b59e70b843 for an example of an upgrade.