Hi,

the karaf-maven-plugin can update the features.cfg file.

You can provide your own features.cfg and exclude feature from the boot set.

Regards
JB

On 06/11/2014 11:13 AM, ozzyoli wrote:
Hi,

I'm building a custom karaf distro (POM file at end of this message).

The resulting org.apache.karaf.features.cfg contains

#
# Comma separated list of features to install at startup
#
featuresBoot =
config,standard,region,package,kar,ssh,management,obr,*oink-commands*

The bold item is my custom feature.

I was wondering how this line is set? Mainly because I don't want region to
be included because it is throwing up error messages on startup.


--------------- pom.xml ------------------------


        <packaging>karaf-assembly</packaging>
        <name>Oink :: Platforms :: Apache Karaf :: Custom Distribution</name>

        <dependencies>
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>framework</artifactId>
                        <version>${karaf.version}</version>
                        <type>kar</type>
                </dependency>
                <dependency>
                        <groupId>org.apache.karaf.features</groupId>
                        <artifactId>standard</artifactId>
                        <classifier>features</classifier>
                        <version>${karaf.version}</version>
                        <type>xml</type>
                        <scope>runtime</scope>
                </dependency>     
                <dependency>
                        <groupId>uk.org.openeyes.oink.karaf</groupId>
                        <artifactId>oink-features</artifactId>
                        <version>${project.version}</version>
                        <classifier>features</classifier>
                        <type>xml</type>
                        <scope>runtime</scope>
                </dependency>                             
        </dependencies>

        <build>
                <plugins>
             <plugin>
                 <groupId>org.apache.karaf.tooling</groupId>
                 <artifactId>karaf-maven-plugin</artifactId>
                 <extensions>true</extensions>
                 <configuration>
                     <installedFeatures>
                        <feature>oink-domain</feature>
                         <feature>oink-core</feature>
                         <feature>oink-adapter-facade</feature>
                         <feature>oink-adapter-proxy</feature>
                         <feature>oink-adapter-hl7v2</feature>
                     </installedFeatures>
                     <bootFeatures>
                        <feature>standard</feature>
                        <feature>management</feature>
                         <feature>obr</feature>
                         <feature>oink-commands</feature>
                     </bootFeatures>
                 </configuration>
             </plugin>
                </plugins>
        </build>



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-1-Custom-Distro-How-is-org-apache-karaf-features-cfg-built-tp4033461.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to