"Fossies" - the Fresh Open Source Software Archive

Member "opennms-31.0.8/container/karaf/README.markdown" (9 May 2023, 1880 Bytes) of package /linux/misc/opennms-31.0.8-source.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

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.

  1. Download and unpack the new Karaf tar.gz file.

  2. 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
  3. Apply any relevant changes to the files inside each etc file.

  4. 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.

  5. 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.

  6. 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.

  7. Update the Karaf version inside $SRC_DIR/core/test-api/karaf/src/main/java/org/opennms/core/test/karaf/KarafTestCase.java.

  8. Update $SRC_DIR/pom.xml with new value for <karafVersion> property.

  9. Update $SRC_DIR/pom.xml with new value for <felixConfigadminVersion> property.

  10. Update $SRC_DIR/smoke-test/pom.xml with new value for <karafVersion> property.

  11. 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.