From 6329c464ddbb87fb87d44575f3780050097ab9fe Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sat, 10 Oct 2020 01:40:49 +0200 Subject: [PATCH] Simplify core features to prevent unnecessary bundle refreshes It seems that when multiple features install the same bundle it may cause Karaf to refresh bundles when (un)installing features. When the (redundant) openhab-core-automation feature is removed and the serial dependencies are merged into the openhab-transport-serial feature these restarts due these bundle refreshes no longer occur. Fixes #1322, #1354 Signed-off-by: Wouter Born --- .../openhab-core/src/main/feature/feature.xml | 74 +++++-------------- 1 file changed, 17 insertions(+), 57 deletions(-) diff --git a/features/karaf/openhab-core/src/main/feature/feature.xml b/features/karaf/openhab-core/src/main/feature/feature.xml index d43dca01d5a..97751e9d47c 100644 --- a/features/karaf/openhab-core/src/main/feature/feature.xml +++ b/features/karaf/openhab-core/src/main/feature/feature.xml @@ -74,49 +74,28 @@ mvn:org.openhab.core.bundles/org.openhab.core.auth.oauth2client/${project.version} - - openhab-core-base - mvn:org.openhab.core.bundles/org.openhab.core.automation/${project.version} - - openhab-core-base - openhab-core-automation mvn:org.openhab.core.bundles/org.openhab.core.automation.module.script/${project.version} openhab-core-base - openhab-core-automation openhab-core-automation-module-script mvn:org.openhab.core.bundles/org.openhab.core.automation.module.script.rulesupport/${project.version} openhab-core-base - openhab-core-automation openhab-core-automation-module-script mvn:org.openhab.core.bundles/org.openhab.core.automation.module.media/${project.version} openhab-core-base - openhab-core-automation mvn:org.openhab.core.bundles/org.openhab.core.automation.rest/${project.version} - - openhab-core-base - openhab-core-io-transport-serial - mvn:org.openhab.core.bundles/org.openhab.core.config.serial/${project.version} - - - - openhab-core-base - mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.usbserial/${project.version} - mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.usbserial.linuxsysfs/${project.version} - - openhab-core-base mvn:org.openhab.core.bundles/org.openhab.core.io.bin2json/${project.version} @@ -227,15 +206,6 @@ mvn:org.openhab.core.bundles/org.openhab.core.io.transport.mqtt/${project.version} - - openhab-core-base - osgi.service;filter:="(objectClass=org.openhab.core.io.transport.serial.SerialPortManager)" - osgi.service;filter:="(objectClass=org.openhab.core.io.transport.serial.SerialPortProvider)" - openhab-core-io-transport-serial-rxtx - - mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial/${project.version} - - openhab-core-base @@ -246,29 +216,6 @@ mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial.javacomm/${project.version} - - openhab-core-base - - openhab.tp;filter:="(&(feature=serial)(impl=rxtx))" - openhab.tp-serial-rxtx - - mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial/${project.version} - mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial.rxtx/${project.version} - - - - openhab-core-base - - openhab.tp;filter:="(&(feature=serial)(impl=rxtx))" - openhab-core-io-transport-serial-rxtx - - openhab.tp;filter:="(feature=commons-net)" - openhab.tp-commons-net - - mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial/${project.version} - mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial.rxtx.rfc2217/${project.version} - - openhab-core-base @@ -427,7 +374,6 @@ openhab-core-automation-rest openhab-core-automation-module-script openhab-core-automation-module-media - openhab-core-automation openhab-core-io-console-karaf openhab-core-io-http-auth openhab-core-io-rest-auth @@ -499,9 +445,23 @@ - openhab-core-io-transport-serial-rfc2217 - openhab-core-config-serial - openhab-core-config-discovery-usbserial + openhab-core-base + + osgi.service;filter:="(objectClass=org.openhab.core.io.transport.serial.SerialPortManager)" + osgi.service;filter:="(objectClass=org.openhab.core.io.transport.serial.SerialPortProvider)" + + openhab.tp;filter:="(feature=commons-net)" + openhab.tp-commons-net + + openhab.tp;filter:="(&(feature=serial)(impl=rxtx))" + openhab.tp-serial-rxtx + + mvn:org.openhab.core.bundles/org.openhab.core.config.serial/${project.version} + mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.usbserial/${project.version} + mvn:org.openhab.core.bundles/org.openhab.core.config.discovery.usbserial.linuxsysfs/${project.version} + mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial/${project.version} + mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial.rxtx/${project.version} + mvn:org.openhab.core.bundles/org.openhab.core.io.transport.serial.rxtx.rfc2217/${project.version}