diff --git a/bundles/org.openhab.core.io.console.karaf/bnd.bnd b/bundles/org.openhab.core.io.console.karaf/bnd.bnd
new file mode 100644
index 000000000..ab47b4d35
--- /dev/null
+++ b/bundles/org.openhab.core.io.console.karaf/bnd.bnd
@@ -0,0 +1 @@
+Karaf-Commands: org.openhab.core.io.console.karaf.internal
diff --git a/bundles/org.openhab.core.io.console.karaf/pom.xml b/bundles/org.openhab.core.io.console.karaf/pom.xml
index 6a54461a0..776466f76 100644
--- a/bundles/org.openhab.core.io.console.karaf/pom.xml
+++ b/bundles/org.openhab.core.io.console.karaf/pom.xml
@@ -26,6 +26,12 @@
org.openhab.core.io.console
${project.version}
+
+ org.apache.karaf.wrapper
+ org.apache.karaf.wrapper.core
+ ${karaf.compile.version}
+ provided
+
diff --git a/bundles/org.openhab.core.io.console.karaf/src/main/java/org/openhab/core/io/console/karaf/internal/CommandWrapper.java b/bundles/org.openhab.core.io.console.karaf/src/main/java/org/openhab/core/io/console/karaf/internal/CommandWrapper.java
index 7f87cafbe..c6eec5737 100644
--- a/bundles/org.openhab.core.io.console.karaf/src/main/java/org/openhab/core/io/console/karaf/internal/CommandWrapper.java
+++ b/bundles/org.openhab.core.io.console.karaf/src/main/java/org/openhab/core/io/console/karaf/internal/CommandWrapper.java
@@ -14,7 +14,6 @@ package org.openhab.core.io.console.karaf.internal;
import java.util.Arrays;
import java.util.List;
-import java.util.stream.Collectors;
import org.apache.karaf.shell.api.action.Action;
import org.apache.karaf.shell.api.action.lifecycle.Reference;
@@ -66,7 +65,7 @@ public class CommandWrapper implements Command, Action {
@Override
public Object execute(Session session, List