Below is from the pom that fails to include the dependent feature 
http-whiteboard. The feature is a dependency of cxf-jaxws.

      <plugin>
         <groupId>org.apache.karaf.tooling</groupId>
            <artifactId>features-maven-plugin</artifactId>
            <version>2.3.2</version>

            <executions>
               <execution>
                  <id>add-features-to-repo</id>
                  <phase>generate-resources</phase>
                  <goals>
                     <goal>add-features-to-repo</goal>
                  </goals>
                  <configuration>
                  <descriptors>
                     <!--  Feature Descriptor Files -->
                     <descriptor>
                        mvn:org.apache.cxf.karaf/apache-cxf/2.7.6/xml/features
                     </descriptor> 
                  </descriptors>
                  <features>
                     <!--  Features to add to offline respository -->
                     <feature>http</feature>
                     <feature>cxf-jaxws</feature>
                  </features>
                  <repository>target/offline-repository</repository>
                  <karafVersion>2.3.4</karafVersion>
                  </configuration>
              </execution>
            </executions>
          </plugin>

Paul Spencer

On Mar 4, 2014, at 10:33 PM, Freeman Fang <[email protected]> wrote:

> Hi,
> 
> By default it will have all dependent features included, what's the exact 
> problem you encounter?
> If your features.xml have multiple cxf version, you may encounter a issue[1] 
> get fixed very recently
> [1]https://issues.apache.org/jira/browse/KARAF-2791
> -------------
> Freeman(Yue) Fang
> 
> Red Hat, Inc. 
> FuseSource is now part of Red Hat
> 
> 
> 
> On 2014-3-5, at 上午4:07, Paul Spencer wrote:
> 
>> How do I configure the features-maven-plugin version 2.3.2 to include 
>> dependent features?
>> 
>> As an example, I have include the jax-ws feature which depends on 
>> http-whiteboard.  I would like to have all dependent features includes, or 
>> be notified of dependent features that are not included.
>> 
>> karaf@root> features:info cxf-jaxws
>> Description of cxf-jaxws 2.7.10 feature
>> ----------------------------------------------------------------
>> Feature has no configuration
>> Feature has no configuration files
>> Feature depends on:
>>  cxf-core 2.7.10
>>  cxf-databinding-jaxb 2.7.10
>>  cxf-bindings-soap 2.7.10
>>  cxf-http 2.7.10
>> Feature contains followed bundles:
>> mvn:org.apache.cxf/cxf-rt-frontend-simple/2.7.10 start-level=40
>> mvn:org.apache.cxf/cxf-rt-frontend-jaxws/2.7.10 start-level=40
>> 
>> karaf@root> features:info cxf-http
>> Description of cxf-http 2.7.10 feature
>> ----------------------------------------------------------------
>> Feature has no configuration
>> Feature has no configuration files
>> Feature depends on:
>>  cxf-core 2.7.10
>>  http-whiteboard [2,4)
>> Feature contains followed bundles:
>> mvn:org.apache.cxf/cxf-rt-transports-http/2.7.10 start-level=40
>> 
>> 
>> Paul Spencer
>> 
> 

Reply via email to