[
https://issues.apache.org/jira/browse/KARAF-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14042513#comment-14042513
]
Karl Catewicz commented on KARAF-2519:
--------------------------------------
Hello guys,
I'm encountering the same issue with 3.0.1 . I'm trying to include bundles
form the cxf-core feature. My descriptor looks similar to this:
<?xml version="1.0" encoding="UTF-8" ?>
<features name="${project.artifactId}"
xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
<repository>mvn:org.apache.cxf.karaf/apache-cxf/${cxf.version}/xml/features</repository>
<feature name="some-feature" version="${project.version}">
<feature version="${cxf.version}">cxf-core</feature>
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlsec/1.4.5_1</bundle>
</feature>
</features>
I'm using this descriptor in following way:
<execution>
<id>01</id>
<goals>
<goal>features-create-kar</goal>
</goals>
<configuration>
<featuresFile>mvn:some-group/some-feature/1.0.0-SNAPSHOT/xml/features</featuresFile>
</configuration>
</execution>
The xmlsec bundle is put correctly inside the kar. The cxf feature is skipped.
Any ideas or chance of fixing it ?
thank you
> karaf-maven-plugin ignores dependent feature repositories when building an
> assembly
> -----------------------------------------------------------------------------------
>
> Key: KARAF-2519
> URL: https://issues.apache.org/jira/browse/KARAF-2519
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 3.0.0.RC1
> Reporter: Minto van der Sluis
> Assignee: Jean-Baptiste Onofré
> Fix For: 4.0.0, 3.0.2
>
>
> Feature repositories in features.xml files are not processed recursively:
> <features name="wicketkaraf" version="1.0.0-SNAPSHOT">
> <repository>mvn:org.ops4j.pax.wicket/paxwicket/3.0.1/xml/features</repository>
>
> <repository>mvn:org.ops4j.pax.wicket/features/3.0.1/xml/features</repository>
> ...
> As a result dependent features might be missing since there is no other way
> to find their corresponsing bundles. The only work around it to add all
> dependent feature repositories as features (classifier) dependencies to your
> pom and add the needed features as bootFeatures to the karaf-maven-plugin
> configuration.
> See mailing list discussion as well:
> http://karaf.922171.n3.nabble.com/How-to-include-all-dependencies-in-karaf-assembly-tt4029728.html
--
This message was sent by Atlassian JIRA
(v6.2#6252)