Hi, I tested KAR creation with the karaf-maven-plugin, based on this feature.xml:
https://repo1.maven.org/maven2/org/ops4j/pax/cdi/pax-cdi-features/0.12.0/pax-cdi-features-0.12.0-features.xml The KAR file generated by the plugin contains even less dependencies than the one created by kar:create. Here the files contained in the KAR file created by karaf-maven-plugin: +---com ¦ +---google ¦ +---guava ¦ +---guava ¦ +---13.0 ¦ +---13.0.1 +---org +---apache ¦ +---deltaspike ¦ +---core ¦ ¦ +---deltaspike-core-api ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---deltaspike-core-impl ¦ ¦ +---1.2.1 ¦ +---modules ¦ +---deltaspike-data-module-api ¦ ¦ +---1.2.1 ¦ +---deltaspike-data-module-impl ¦ ¦ +---1.2.1 ¦ +---deltaspike-jpa-module-api ¦ ¦ +---1.2.1 ¦ +---deltaspike-jpa-module-impl ¦ ¦ +---1.2.1 ¦ +---deltaspike-partial-bean-module-api ¦ ¦ +---1.2.1 ¦ +---deltaspike-partial-bean-module-impl ¦ +---1.2.1 +---jboss ¦ +---logging ¦ +---jboss-logging ¦ +---3.1.3.GA +---ops4j +---pax +---cdi +---fragment ¦ +---pax-cdi-fragment-ds-jpa ¦ +---0.12.0 +---pax-cdi-api ¦ +---0.12.0 +---pax-cdi-extender ¦ +---0.12.0 +---pax-cdi-extension ¦ +---0.12.0 +---pax-cdi-openwebbeans ¦ +---0.12.0 +---pax-cdi-spi ¦ +---0.12.0 +---pax-cdi-web ¦ +---0.12.0 +---pax-cdi-web-openwebbeans ¦ +---0.12.0 +---pax-cdi-web-weld ¦ +---0.12.0 +---pax-cdi-weld +---0.12.0 And here the files contained in the KAR file created by kar:create: +---com ¦ +---google ¦ +---guava ¦ +---guava ¦ +---13.0 ¦ +---13.0.1 +---javax ¦ +---el ¦ ¦ +---javax.el-api ¦ ¦ +---3.0.0 ¦ +---enterprise ¦ ¦ +---cdi-api ¦ ¦ +---1.1-20130918 ¦ ¦ +---1.2 ¦ +---interceptor ¦ +---javax.interceptor-api ¦ +---1.2 +---org +---apache ¦ +---deltaspike ¦ ¦ +---core ¦ ¦ ¦ +---deltaspike-core-api ¦ ¦ ¦ ¦ +---1.2.1 ¦ ¦ ¦ +---deltaspike-core-impl ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---modules ¦ ¦ +---deltaspike-data-module-api ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---deltaspike-data-module-impl ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---deltaspike-jpa-module-api ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---deltaspike-jpa-module-impl ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---deltaspike-partial-bean-module-api ¦ ¦ ¦ +---1.2.1 ¦ ¦ +---deltaspike-partial-bean-module-impl ¦ ¦ +---1.2.1 ¦ +---geronimo ¦ ¦ +---specs ¦ ¦ +---geronimo-annotation_1.1_spec ¦ ¦ ¦ +---1.0.1 ¦ ¦ +---geronimo-atinject_1.0_spec ¦ ¦ ¦ +---1.0 ¦ ¦ +---geronimo-el_2.2_spec ¦ ¦ ¦ +---1.0.3 ¦ ¦ +---geronimo-interceptor_1.1_spec ¦ ¦ ¦ +---1.0 ¦ ¦ +---geronimo-jcdi_1.0_spec ¦ ¦ ¦ +---1.0 ¦ ¦ +---geronimo-jpa_2.0_spec ¦ ¦ ¦ +---1.1 ¦ ¦ +---geronimo-jta_1.1_spec ¦ ¦ ¦ +---1.1.1 ¦ ¦ +---geronimo-validation_1.0_spec ¦ ¦ +---1.1 ¦ +---openwebbeans ¦ ¦ +---openwebbeans-el22 ¦ ¦ ¦ +---1.2.6 ¦ ¦ +---openwebbeans-impl ¦ ¦ ¦ +---1.2.6 ¦ ¦ +---openwebbeans-osgi ¦ ¦ ¦ +---1.2.6 ¦ ¦ +---openwebbeans-spi ¦ ¦ ¦ +---1.2.6 ¦ ¦ +---openwebbeans-web ¦ ¦ +---1.2.6 ¦ +---xbean ¦ +---xbean-asm5-shaded ¦ ¦ +---4.1 ¦ +---xbean-bundleutils ¦ ¦ +---4.1 ¦ +---xbean-finder-shaded ¦ +---4.1 +---jboss ¦ +---logging ¦ ¦ +---jboss-logging ¦ ¦ +---3.1.3.GA ¦ +---weld ¦ +---weld-osgi-bundle ¦ +---1.2.0.Beta1 ¦ +---2.1.2.Final ¦ +---2.2.4.Final +---ops4j ¦ +---base ¦ ¦ +---ops4j-base ¦ ¦ +---1.5.0 ¦ +---pax ¦ +---cdi ¦ ¦ +---fragment ¦ ¦ ¦ +---pax-cdi-fragment-ds-jpa ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-api ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-extender ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-extension ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-features ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-openwebbeans ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-spi ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-web ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-web-openwebbeans ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-web-weld ¦ ¦ ¦ +---0.12.0 ¦ ¦ +---pax-cdi-weld ¦ ¦ +---0.12.0 ¦ +---jdbc ¦ ¦ +---pax-jdbc ¦ ¦ +---0.3.0 ¦ +---jpa ¦ ¦ +---pax-jpa ¦ ¦ +---0.3.0 ¦ +---swissbox ¦ +---pax-swissbox-core ¦ ¦ +---1.8.0 ¦ +---pax-swissbox-extender ¦ ¦ +---1.8.0 ¦ +---pax-swissbox-lifecycle ¦ ¦ +---1.8.0 ¦ +---pax-swissbox-tracker ¦ +---1.8.0 +---osgi +---org.osgi.enterprise +---4.2.0 This is the pom.xml I used for my test (maybe I did something wrong here...?): <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>kar</packaging> <name>KAR Test</name> <description>KAR Test</description> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <version>4.0.2</version> <extensions>true</extensions> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <configuration> <aggregateFeatures>true</aggregateFeatures> </configuration> </plugin> </plugins> </build> </project> Regards, Kai -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-behind-a-firewall-in-production-tp4044037p4044122.html Sent from the Karaf - User mailing list archive at Nabble.com.
