Hello!

First of all, I'd like to thank you for such useful application as Karaf :)

Second, maybe, you could help me to implement scenario below.

I have a "my-features.xml" file with my features and standard "karaf-features.xml".

I'm developing my module which depends on some of my bundles, which described in "my-features.xml" file and on bundles from "standard-2.2.0-features.xml" file.

I'd like to generate "module-features.xml" for my new module like this:

<?xml version="1.0" encoding="UTF-8"?>
<features>
<feature name="mymodule" version="1.0">
<bundle>mvn:somebundle/1.1.0</bundle>
            //...some other bundles
<feature>myfeature</feature>
<feature>some-karaf-myfeature</feature>
</feature>
</features>

Where:
All "bundle" lines are references to bundles, which have been described in my pom.xml file and are not described in any "feature.xml" file or "standard-2.2.0-features.xml".

"feature" appears only when my module depends on the bundle, which has already been described in "my-features.xml" or "standard-2.2.0-features.xml".

For example, if my module depends on "spring-beans:3.0.5" and I've put "standard-2.2.0-features.xml" file in module dependencies I get result "module-feature.xml" file like this:

<?xml version="1.0" encoding="UTF-8"?>
<features>
<feature name="mymodule" version="1.0">
<feature name="spring" version="3.0.5.RELEASE"/>
</feature>
</features>

but not like:

<?xml version="1.0" encoding="UTF-8"?>
<features>
<feature name="mymodule" version="1.0">
<bundle>mvn:org.springframework/spring-beans/3.0.5.RELEASE</bundle>
</feature>
</features>

I there any way to do this using maven-feature-plugin or I must do it manually?

Thanks for your help.
With best regards, Vadim.


Reply via email to