karafDistributionConfiguration()
.frameworkUrl(
maven().groupId("org.apache.openejb").artifactId("apache-karafee").versionAsInProject().type("tar.gz"))
.name("Apache Karafee")
.karafVersion(System.getProperty("karaf.version")),
new KarafDistributionConfigurationFilePutOption("etc/org.apache.karaf.management.cfg", "rmiRegistryPort", Integer.toString(NetworkUtil.getNextAvailablePort())),
new KarafDistributionConfigurationFilePutOption("etc/org.apache.karaf.management.cfg", "rmiServerPort", Integer.toString(NetworkUtil.getNextAvailablePort())),
felix()
// to debug activate next line and create a remote debug configuration in your IDE
// , vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005")
);