Hi, I'm trying to create a custom karaf distribution having ipojo supported by default. So I added the respective dependency (I'm using the karaf-assembly archetype):
<dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.ipojo.features</artifactId> <version>1.12.1</version> <type>xml</type> <scope>runtime</scope> </dependency> Furthermore, I added the ipojo feature to the bootFeatures: <bootFeatures> <feature>standard</feature> <feature>management</feature> <feature>ipojo</feature> </bootFeatures> However, install-kars completely ignores this dependency and then throws an error that the feature ipojo could not be found: [INFO] --- karaf-maven-plugin:3.0.2:install-kars (default-install-kars) @ pcbnxt-karaf-distribution --- [INFO] Creating system directory [INFO] Creating startup.properties [INFO] Loading kar and features repositories dependencies with compile or runtime scopes [INFO] The startup.properties file is updated using kar and features dependency with a scope different from runtime, or defined in the <startupFeatures/> plugin configuration [INFO] Extracting org.apache.karaf.features:framework:kar:3.0.2:compile kar [INFO] Resolving /C:/Users/mj/Development/Workspace/Java/pcbnxt/pcbnxt-karaf-distribution/target/assembly/system/org/apache/karaf/features/framework/3.0.2/framework-3.0.2-features.xml features repository [INFO] Resolving org.apache.karaf.features:standard:xml:features:3.0.2:runtime features repository [INFO] Resolving mvn:org.apache.karaf.features/standard/3.0.2/xml/features features repository [INFO] Resolving mvn:org.ops4j.pax.web/pax-web-features/3.1.2/xml/features features repository [INFO] Checking features resolution [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.504 s [INFO] Finished at: 2015-01-30T21:51:30+01:00 [INFO] Final Memory: 19M/224M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.2:install-kars (default-install-kars) on project pcbnxt-karaf-distribution: Feature ipojo is not resolved. Check that <dependencies/> provide the kar of features repository providing this feature (with compile or runtime scope) -> [Help 1] I have no idea why it just ignores this dependency... -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-2-custom-distribution-install-kars-ignores-ipojo-dependency-tp4038145.html Sent from the Karaf - User mailing list archive at Nabble.com.
