Hi,
When using this config with karaf pax tooling, I see that we have 2 Karaf
containers created under (for me) target/exam/unpack
@Configuration
public static Option[] configure() {
return new Option[]{
karafDistributionConfiguration().frameworkUrl(
maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").versionAsInProject())
//This version doesn't affect the version of karaf
we use
.karafVersion(MavenUtils.getArtifactVersion("org.apache.karaf",
"apache-karaf")).name("Apache Karaf")
.unpackDirectory(new File("target/exam/unpack/")),
keepRuntimeFolder(),
logLevel(LogLevelOption.LogLevel.ERROR),
// Load Camel Features
loadCamelFeatures(),
...
/* Drools Camel Example */
mavenBundle("org.drools.karaf", "drools-example",
"1.0-SNAPSHOT"),
felix()
};
}
drwxr-xr-x 18 chmoulli wheel 612 Feb 18 16:51
063a614b-b482-46cc-9198-434c5a351818
drwxr-xr-x 16 chmoulli wheel 544 Feb 18 16:54
1fb99d1b-010e-4012-ac8f-481e625ae04c
Is there an option that we could use to only create one container ?
Regards,
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com