[ https://issues.apache.org/jira/browse/KARAF-5593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16352127#comment-16352127 ]
Guillaume Nodet commented on KARAF-5593: ---------------------------------------- So I made a test and there are 2 different behaviors. If you run: {code:java} feature:repo-add spring-legacy feature:repo-add spring feature:install spring {code} The selection of the spring feature will be done before running the resolver, and the requirement that will be added is the following: {code:java} feature:spring/[5.0.2.RELEASE_1,5.0.2.RELEASE_1] {code} In this case, only the bundles related to this feature (so the spring 5.0.2.x bundles) will be downloaded. However, if you run the following: {code:java} feature:repo-add spring-legacy feature:repo-add spring feature:repo-add activemq feature:install activemq {code} Then all spring bundles will be downloaded. The reason is that {{activemq}} has a dependency on the {{spring}} version without specifying a range or an exact version, so that all {{spring}} features will be added to the resolver as candidates to solve the requirement. In order to resolve those feature, all bundles have to be downloaded. > 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: Major > > 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)