public void installBundles() throws BundleException {
BundleUtils bundleUtils = new BundleUtils(bundleContext);
Bundle bundleFabricCommands = bundleUtils.findBundle("io.fabric8.fabric-commands");
if (bundleFabricCommands == null) {
bundleFabricCommands = bundleUtils.installBundle("mvn:io.fabric8/fabric-commands/" + FabricConstants.FABRIC_VERSION);
}
bundleFabricCommands.start();
Bundle bundleFabricAgent = bundleUtils.findBundle("io.fabric8.fabric-agent");
if (nonManaged && bundleFabricAgent == null) {