Hi

i have build a feature.xml that represents my example1 feature: (I have used the karaf-maven-plugin to generate this)
The feature includes just one bundle.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"; name="example1-feature">     <feature name="example1-feature" description="example1-feature" version="1.0.0">
        <details>Example1 Feature</details>
<bundle>mvn:de......examples/example0-bundle/1.0.0</bundle>
    </feature>
</features>

now i have build a second example feature that needs the example1 feature to be installed.
The feature includes example1 and a bundle.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"; name="example2-feature">
<repository>mvn:de.......examples/example1-feature/1.0.0/xml/features</repository>
    <feature name="example1-feature" description="example1-feature" version="1.0.0">
        <details>Example2 Feature</details>
        <feature version="1.0.0" prerequisite="false" dependency="false">example1-feature</feature>
        <feature prerequisite="true" dependency="false">wrap</feature>
<bundle>wrap:mvn:de......plugin.examples/example2-plugin/1.0.0</bundle>
    </feature>
</features>

When i want to build a kar file i get an error because the 'wrap' feature is not installed.

Why is the bundle of the second example wrapper with this wrap feature?
What does 'wrap:' mean?
Are my feature.xml files incorrect?
Why is the first bundle without wrap but the second bundle has this wrapped thing?

Any help would be greatly appreciated

Kind regards,
Matthias

Reply via email to