Chapter 7. Deploying an OSGi Bundle
7.1. Hot Deployment
Hot deploy directory
InstallDir/deploydirectory and hot deploys everything in this directory. Each time a JAR file is copied to this directory, it is installed in the runtime and also started. You can subsequently update or delete the JARs, and the changes are handled automatically.
/target/foo-1.0-SNAPSHOT.jar, you can deploy this bundle by copying it to the InstallDir
/deploydirectory as follows (assuming you are working on a UNIX platform):
% cp ProjectDir/target/foo-1.0-SNAPSHOT.jar InstallDir/deploy
Hot undeploying a bundle
InstallDir/deploydirectory while the Apache Karaf container is running.
deploy/, and then restart the Karaf container, the bundle will not be undeployed after you restart the container (you can, however, undeploy the bundle manually using the