Hello,

I am using the maven karaf plugin to generate a feature XML file for my 
project. My configuration looks like:

                        <plugin>
                                <groupId>org.apache.karaf.tooling</groupId
>
                                <artifactId>karaf-maven-plugin</artifactId
>
                                <version>${karaf.version}</version>
                                <extensions>true</extensions>
                                <executions>
                                        <execution>
                                                <id>
default-features-generate-descriptor</id>
                                                <phase>prepare-package</
phase>
                                                <goals>
                                                        <goal>
features-generate-descriptor</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <startLevel>100</startLevel>
                                        <includeTransitiveDependency>false
</includeTransitiveDependency>
                                        <finalName>energy-material</
finalName>
                                        <addTransitiveFeatures>true</
addTransitiveFeatures>
                                        <features>
                                                <feature>cxf</feature>
                                                <feature>jpa</feature>
                                                <feature>hibernate</
feature>
                                                <feature>
hibernate-validator</feature>
                                                <feature>jdbc</feature>
                                                <feature>jndi</feature>
                                                <feature>war</feature>
                                                <feature>transaction</
feature>
                                        </features>
                                </configuration>
                        </plugin>

The packaging type of the POM is 'feature'. The feature XML is generated 
with all my artificts I would see in the feature XML. But the point is 
that I am missing the section in the XML that my feature needs the 
features cxf, jpa etc.
Like:
        <feature name="my-project" description="my-project"
                version="${project.version}" resolver="(obr)" 
start-level='80'>
                ...
                <feature>cxf</feature>
                <feature>jpa</feature>
                ...
                <bundle>my bundles here</bundle>
        </feature>

How is it possible to get the needed features generated by the maven 
plugin into the feature XML?

Regards,

Andy
--------------------------------------------------------------------------------------------------------------------------------------------
 Andy Schmidt - KISTERS AG - Pascalstraße 8+10 - 52076 Aachen - Germany
Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | 
Aufsichtsratsvorsitzender: Dr. Thomas Klevers
Phone: +49 2408 9385 -449 | Fax: +49 2408 9385 -555 | E-Mail: 
[email protected] | WWW: http://www.kisters.de
--------------------------------------------------------------------------------------------------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet. 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.

Reply via email to