[ https://issues.apache.org/jira/browse/KARAF-4411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15191046#comment-15191046 ]
Guillaume Nodet commented on KARAF-4411: ---------------------------------------- I have a fix, but I need to investigate a bit more the possible side effects: {code} diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java b/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java index 09cae6b..d8863e5 100644 --- a/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java +++ b/features/core/src/main/java/org/apache/karaf/features/internal/region/Subsystem.java @@ -284,7 +284,7 @@ public class Subsystem extends ResourceImpl { while (!ss.isAcceptDependencies()) { ss = ss.getParent(); } - ss.requireFeature(dep.getName(), dep.getVersion(), this.mandatory && (mandatory && !dep.isDependency())); + ss.requireFeature(dep.getName(), dep.getVersion(), false); } for (Conditional cond : feature.getConditional()) { Feature fcond = cond.asFeature(); {code} > FeatureResolver: spring-dm-web feature installs Spring ver 3.1.4 and 3.2.14 > at the same time > -------------------------------------------------------------------------------------------- > > Key: KARAF-4411 > URL: https://issues.apache.org/jira/browse/KARAF-4411 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.0.4 > Environment: Oracle JDK 1.8 > Reporter: Vladimir Konkov > Assignee: Guillaume Nodet > > Similar to KARAF-4159. > To reproduce: > $ feature:install spring-dm-web > $ la > ... > 56 | Active | 30 | 3.2.14.RELEASE_1 | Apache ServiceMix :: Bundles :: > spring-aop > 57 | Active | 30 | 3.2.14.RELEASE_1 | Apache ServiceMix :: Bundles :: > spring-beans > 58 | Active | 30 | 3.2.14.RELEASE_1 | Apache ServiceMix :: Bundles :: > spring-context > 59 | Active | 30 | 3.2.14.RELEASE_1 | Apache ServiceMix :: Bundles :: > spring-context-support > 60 | Active | 30 | 3.2.14.RELEASE_1 | Apache ServiceMix :: Bundles :: > spring-core > 61 | Active | 30 | 3.2.14.RELEASE_1 | Apache ServiceMix :: Bundles :: > spring-expression > ... > 106 | Active | 30 | 3.1.4.RELEASE | Spring AOP > 107 | Active | 30 | 3.1.4.RELEASE | Spring ASM > 108 | Active | 30 | 3.1.4.RELEASE | Spring Beans > 109 | Active | 30 | 3.1.4.RELEASE | Spring Context > 110 | Active | 30 | 3.1.4.RELEASE | Spring Context Support > 111 | Active | 30 | 3.1.4.RELEASE | Spring Core > 112 | Active | 30 | 3.1.4.RELEASE | Spring Expression Language > 113 | Active | 30 | 1.2.1 | spring-osgi-web -- This message was sent by Atlassian JIRA (v6.3.4#6332)