You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by souciance <so...@gmail.com> on 2017/02/09 13:23:46 UTC

Custom distribution and feature files - how does it work?

Hello,

I am trying to build a custom distribution of Karaf version 4.0.2. I have
been able to do for some time now but I have feel that I am not doing it
correctly or according to best practise.

Here is the core of the pom.xml of the custom distribution:

<installedFeatures>
            <feature>wrapper</feature>
          </installedFeatures>
          <startupFeatures>
          </startupFeatures>
          <bootFeatures>
            <feature>aries-proxy</feature>
            <feature>aries-blueprint</feature>
            <feature>feature</feature>
            <feature>shell</feature>
            <feature>shell-compat</feature>
            <feature>deployer</feature>
            <feature>bundle</feature>
            <feature>config</feature>
            <feature>diagnostic</feature>
            <feature>instance</feature>
            <feature>jaas</feature>
            <feature>log</feature>
            <feature>package</feature>
            <feature>service</feature>
            <feature>system</feature>
            <feature>kar</feature>
            <feature>ssh</feature>
            <feature>management</feature>
            <feature>wrap</feature>
            <feature>camel-core</feature>
            <feature>camel</feature>
            <feature>camel-blueprint</feature>
       
            <feature>jolokia</feature>
            <feature>SelfServiceMachine</feature>
            
As you can see I have commented on three features.

In my maven repo I do have a feature file for SelfServiceMachine. It looks
like this:

 <feature name="SelfServiceMachine" description="Feature descriptor for
SelfServiceMachine integration" install="auto" version="1.0.0.SNAPSHOT">
        <bundle>mvn:org.apache.camel/camel-core/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-blueprint/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-rabbitmq/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-jackson/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-netty4/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-cache/2.17.0</bundle>
        <bundle>mvn:org.ow2.asm/asm-commons/5.0.3</bundle>
        <bundle>mvn:org.apache.commons/commons-collections4/4.1</bundle>
        <bundle>mvn:org.apache.camel/camel-jsonpath/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-netty4-http/2.17.0</bundle>
        <bundle>mvn:org.apache.camel/camel-freemarker/2.17.0</bundle>
        <bundle>mvn:org.apache.commons/commons-lang3/3.4</bundle>
        <bundle>mvn:com.google.guava/guava/19.0</bundle>        
    </feature>


The problem here is that the custom distribution builds and install
correctly. But when I run it says that it cannot find camel-rabbitmq. Why is
that? If I uncomment the feature in the custom distribution and add
camel-rabbitmq there then that error is gone. But then why do I need to add
it to the feature file and the pom file? Doesn't the feature file say "here
are the my bundles, please install them for me?"

Any help or guidance would be much appreciated.



--
View this message in context: http://karaf.922171.n3.nabble.com/Custom-distribution-and-feature-files-how-does-it-work-tp4049534.html
Sent from the Karaf - User mailing list archive at Nabble.com.