There's difference between installing a feature and installing a single JAR or OSGi bundle.
A feature is defined in an XML file. A feature consists of a number of bundles, configs, ... that are installed together. Have a look at http://karaf.apache.org/manual/latest-2.3.x/users-guide/provisioning.html to learn more about features in Karaf.
In this case, you want to install a single JAR into the container. You can use the command osgi:install
to do this, followed by a URL pointing to the JAR (e.g. mvn:jtidy/jtidy/4aug2000r7-dev
).
However, in your case, there's one more complexity. jtidy
is not an OSGi bundle by itself. The easiest way to add the necessary OSGi metadata, would be to use the wrap:
protocol to automatically add the OSGi metadata to the JAR.
So, to wrap things up - to install this jtidy
dependency in Apache ServiceMix, you can use
osgi:install wrap:mvn:jtidy/jtidy/4aug2000r7-dev