Description
These documentation:
- http://karaf.apache.org/manual/2.1.99-SNAPSHOT/developers-guide/extending-console.html
- https://cwiki.apache.org/confluence/display/KARAF/6.1.+Extending+the+console
Is out of date, since org.osgi.service.command need to be replaced with org.apache.felix.service.command since Karaf 2.2.
I've commented here: https://cwiki.apache.org/confluence/display/KARAF/6.1.+Extending+the+console?focusedCommentId=26119164&#comment-26119164
I couldn't update the article due to insufficient permissions. If you want to assign me permissions, my Confluence username is "ceefour".
I've also signed the CLA: http://people.apache.org/committer-index.html#unlistedclas under name Hendy Irawan.
UPDATE: after actually testing it, it seems org.apache.felix.service.command CANNOT be resolved.
https://issues.apache.org/jira/browse/KARAF-600
The strange thing is the package is actually exported by org.apache.karaf.shell.console (2.2.0) :
- import org.apache.felix.service.command: WARNING - unable to find matching export
karaf@bipposhell> packages:exports 22
ID Packages
22 org.apache.felix.gogo.runtime.threadio
22 org.apache.felix.gogo.commands
22 org.apache.felix.gogo.commands.converter
22 org.apache.felix.gogo.runtime.activator
22 org.apache.felix.gogo.commands.basic
22 org.apache.felix.gogo.runtime
22 org.apache.felix.service.command
22 org.apache.felix.service.threadio
22 org.apache.karaf.shell.console.jline
22 org.apache.karaf.shell.console
22 org.apache.karaf.shell.console.commands
22 org.apache.karaf.shell.console.completer
22 org.fusesource.jansi
22 jline.console.history
22 jline
22 jline.console.completer
22 jline.console
22 jline.internal
22 org.fusesource.hawtjni.runtime