Hi, Thank you JB! I added the wrap feature and it worked! <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <configuration> <bootFeatures> <feature>aries-blueprint</feature> <feature>OUR_CUSTOM_FEATURE </feature> <feature>bundle</feature> <feature>shell-compat</feature> <feature>log</feature> <feature>ssh</feature> <feature>wrap</feature> </bootFeatures> </configuration> </plugin>
By the way is there a wiki page or any place that lists all the available standard features like log, ssh, wrap… ? Thx Seb De : Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Envoyé : mercredi 25 octobre 2017 08:24 À : user@karaf.apache.org Cc : user@karaf.apache.org Objet : RE: wrap:mvn in offline mode Hi Wrap feature provides the wrap url handler. Regards JB On Oct 25, 2017, at 08:22, DERIES Sebastien <sebastien.der...@thalesgroup.com<mailto:sebastien.der...@thalesgroup.com>> wrote: Thank you Markus for your answer. We build our custom distribution like this: <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <configuration> <bootFeatures> <feature>aries-blueprint</feature> <feature>OUR_CUSTOM_FEATURE </feature> <feature>bundle</feature> <feature>shell-compat</feature> <feature>log</feature> <feature>ssh</feature> </bootFeatures> </configuration> </plugin> The feature OUR_CUSTOM_FEATURE defines a list of bundles we install and inside our custom distribution. One of those bundles is wrapped using mvn:wrap. I was wondering if a preexisting feature (I would add to my bootFeatures) would install the "mvn:wrap" functionality Thanks. Seb -----Message d'origine----- De : Markus Rathgeb [mailto:maggu2...@gmail.com] Envoyé : mardi 24 octobre 2017 12:49 À : user@karaf.apache.org<mailto:user@karaf.apache.org> Objet : Re: wrap:mvn in offline mode Hi, if I understand your use case correctly, you want to add "wrap" to "installedFeature". https://karaf.apache.org/manual/latest/#_plugin_configuration 2017-10-24 11:03 GMT+02:00 DERIES Sebastien <sebastien.der...@thalesgroup.com<mailto:sebastien.der...@thalesgroup.com>>: Hey Everyone, I currently work on a custom karaf distribution (based on 4.1.2) built using the karaf-maven-plugin. This distribution was working perfectly offline (any nexus server) until I added a non OSGi jar file inside one of our custom karaf feature using the wrap:mvn protocol. <feature name="some-feature" <bundle>wrap:mvn:somegroup/some-artifact/0.0.1/bundle> </feature> The first time I ran the new distribution with a wrapped jar file, the distribution was trying to connect to remote nexus repositories. To avoid this, I tuned etc/org.ops4j.pax.url.mvn.cfg etc/karaf_maven_settings.xml to work offline (only in the distribution local repository.) like this: etc/org.ops4j.pax.url.mvn.cfg : org.ops4j.pax.url.mvn.certificateCheck=true org.ops4j.pax.url.mvn.settings=${karaf.home}/etc/karaf_maven_settings. xml org.ops4j.pax.url.mvn.localRepository=${karaf.home}/${karaf.default.re<http://karaf.default.re> pository} org.ops4j.pax.url.mvn.useFallbackRepositories=false org.ops4j.pax.url.mvn.defaultRepositories=\ file:${karaf.home}/${karaf.default.repository}@id=system.repository@sn apshots, \ file:${karaf.data}/kar@id=kar.repository@multi@snapshots, \ file:${karaf.base}/${karaf.default.repository}@id=child.system.reposit ory@snapshots org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote = true org.ops4j.pax.url.mvn.repositories= karaf_maven_settings.xml <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/maven.apache.org/SETTINGS/1.0.0<http://maven.apache.org/SETTINGS/1.0.0> http://maven.apache.org/xsd/settings-1.0.0.xsd"> </settings> However, I now need to install all the dependencies of the wrap functionality inside the local repository. Should I add any pax-url-wrap bundle dependency into my feature “some-feature” or is there a karaf feature I could add to my assembly that would embed all those dependencies for me ? Thank you very much for your help. Regards Seb PS: Thank you for the great you do with Karaf !