Hi all, I'm working on using the kar feature of Karaf to embed all our custom glue code for the integration of our product with our customer 3rd party applications.
I'm using the maven plugin to build the Kar, so far so good. The kar contains my feature file and the jar file in /repository. The problem is when installing the kar file, it seems the resolver does not find my feature file because it does not consider the new repository directory which just got created by my kar file. I get this WARN message: 2018-03-08T10:02:54,014 | WARN | pipe-kar:install file:/home/nbr/dev/dms/dms-profiles/dev/owkb2/target/owkb2-2.1.0-SNAPSHOT.kar | AetherBasedResolver | 4 - org.ops4j.pax.url.mvn - 2.5.2 | Error resolving artifact com.imtf.dms.profiles:owkb2:xml:features:2.1.0-SNAPSHOT: [Could not find artifact com.imtf.dms.profiles:owkb2:xml:features:2.1.0-SNAPSHOT] java.io.IOException: Error resolving artifact com.imtf.dms.profiles:owkb2:xml:features:2.1.0-SNAPSHOT: [Could not find artifact com.imtf.dms.profiles:owkb2:xml:features:2.1.0-SNAPSHOT] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:720) [4:org.ops4j.pax.url.mvn:2.5.2] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:659) [4:org.ops4j.pax.url.mvn:2.5.2] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:600) [4:org.ops4j.pax.url.mvn:2.5.2] But I can see the feature file is available in the new repository on the filesystem: repository/owkb2-2.1.0-SNAPSHOT repository/owkb2-2.1.0-SNAPSHOT/com repository/owkb2-2.1.0-SNAPSHOT/com/imtf repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms/profiles repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms/profiles/owkb2 repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms/profiles/owkb2/2.1.0-SNAPSHOT repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms/profiles/owkb2/2.1.0-SNAPSHOT/maven-metadata-local.xml repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms/profiles/owkb2/2.1.0-SNAPSHOT/owkb2-2.1.0-SNAPSHOT-features.xml repository/owkb2-2.1.0-SNAPSHOT/com/imtf/dms/profiles/owkb2/2.1.0-SNAPSHOT/owkb2-2.1.0-SNAPSHOT.jar I checked the code of the KarServiceImpl but I dont see where it registrers the new mvn repository of the new kar (corresponding to a new entry in org.ops4j.pax.url.mvn.cfg) I hope my question is clear enough :-) Thanks for any help Nicolas
