7.2. Manual Deployment
Installing a bundle
osgi:installcommand to install one or more bundles in the OSGi container. This command has the following syntax:
osgi:install [-s] [--start] [--help] UrlList
- Start the bundle after installing.
- Same as
- Show and explain the command syntax.
/target/foo-1.0-SNAPSHOT.jar, enter the following command at the Karaf console prompt:
osgi:install -s file:ProjectDir/target/foo-1.0-SNAPSHOT.jar
fileURL in this command. See Section A.1, “File URL Handler” for details.
Uninstalling a bundle
osgi:listcommand. You can then uninstall the bundle using the
osgi:uninstallcommand (which takes the bundle ID as its argument).
A Camel OSGi Service Unit, entering
osgi:listat the console prompt might produce output like the following:
... [ 181] [Resolved ] [ ] [ ] [ 60] A Camel OSGi Service Unit (1.0.0.SNAPSHOT)
181, by entering the following console command:
URL schemes for locating bundles
osgi:installcommand, you can use any of the URL schemes supported by Red Hat JBoss Fuse, which includes the following scheme types:
Redeploying bundles automatically using dev:watch
dev:watchcommand, you can instruct Karaf to monitor your local Maven repository and re-install a particular bundle automatically, as soon as it changes in your local Maven repository.
751—you can enable automatic redeployment by entering the command:
mvn installin your Maven project), the Karaf container automatically re-installs the changed Maven artifact. For more details, see section "dev:watch, watch" in "Console Reference".
dev:watchcommand is intended for a development environment only. It is not recommended for use in a production environment.