[
https://issues.apache.org/jira/browse/KARAF-5593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16352224#comment-16352224
]
Guillaume Nodet edited comment on KARAF-5593 at 2/5/18 10:43 AM:
-----------------------------------------------------------------
Yes, I agree that won't solve the original problem. But in that case, we'd
need a more "global" flag to restrict the range of allowed {{spring}} features.
Maybe this could be tweaked with your recent additions of the
{{FeatureReplacements}} ?
I think the main point is that if the feature is going to be downloaded anyway,
there's no benefit in not adding it to the distro...
was (Author: gnt):
Yes, I agree that won't solve the original problem. But in that case, we'd
need a more "global" flag to restrict the range of allowed {{spring}} features.
Maybe this could be tweaked with your recent additions of the
{{FeatureReplacements}} ?
> karaf-assembly-plugin / builder could include only highest version number of
> dependent feature
> ----------------------------------------------------------------------------------------------
>
> Key: KARAF-5593
> URL: https://issues.apache.org/jira/browse/KARAF-5593
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-tooling
> Reporter: Grzegorz Grzybek
> Assignee: Grzegorz Grzybek
> Priority: Minor
>
> When there's karaf-maven-plugin:assembly configuration:
> {code:xml}
> <installedFeatures>
> ...
> <feature>camel-spring</feature>
> ...
> </installedFeatures>
> {code}
> The distro being assembled contains 3 versions of Spring dependencies: 4.1.x,
> 4.2.x and 4.3.x, because camel-spring depends on:
> {code:xml}
> <feature version='[4.1,5)'>spring</feature>
> <feature version='[4.1,5)'>spring-tx</feature>
> {code}
> Maybe it'd be good to configure AssemblyMojo → Builder →
> org.apache.karaf.profile.assembly.FeatureSelector to pick up only one version?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)