HI all,

I'm using ServiceMix 4.5.3, which uses Karaf 2.2.11.

I'm essentially trying to start from a base karaf installation, and install
on top of it the custom bundles from ServiceMix + bundles my application
needs, so that the end result is a tar.gz with all of that preconfigured
and nothing else needed but to start up.

I'm able to get the packaging fine.  I followed the instructions here:
http://karaf.apache.org/manual/latest-2.2.x/developers-guide/custom-distribution.html

For all of the base stuff, prebuilt features, the install works fine.  I
see those getting installed at start up.

I then attempted to generate a features.xml for my bundle (right now I just
have a single JAR).  This seems to not go well.  The generated
features.xml, from feedback from others is wrong.  Here's a gist of the
features.xml and the error: https://gist.github.com/johnament/7466114

A few things I've noticed.

1. even though many JARs are listed, my JAR file is not listed.  Is this
expected?
2. The biggest error seems to be that it generated a features 1.2 XML file.
 I'm told this is wrong.  I generated this XML file using this plugin
config:

    <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>features-maven-plugin</artifactId>
                <version>2.2.11</version>
                <executions>
                    <execution>
                        <id>generate</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generate-features-xml</goal>
                        </goals>
                        <configuration>
                            <kernelVersion>2.2.11</kernelVersion>
                            <outputFile>target/features.xml</outputFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Which I would assume the 2.2.11 version of the plugin is compatible with
Karaf 2.2.11.

Thanks for any feedback you can give.  This is honestly my first time
dealing with Karaf & OSGi.

John

Reply via email to