It's useless to backport this fix to branch 6.2.x (BRMS 6.1.x) because maven integration provided by kie-ci doesn't work under OSGi anyway.
Cherry-picked to 6.2.x branch with https://github.com/droolsjbpm/drools/commit/2d58dff9c
Product commits: https://code.engineering.redhat.com/gerrit/gitweb?p=droolsjbpm/drools.git;a=commitdiff;h=34444b28430f5f26ac8b27d7172c7029f4bda891 https://code.engineering.redhat.com/gerrit/gitweb?p=droolsjbpm/drools.git;a=commitdiff;h=1ab180e5c28fe4e87d9ecfa3c4f3666ff207b43a
Created attachment 1112607 [details] patch md5sum jboss-brms-6.1.4-BZ-1293965.zip 4748f979b895a9bb53b6c856b7c00496 jboss-brms-6.1.4-BZ-1293965.zip
1. The name of drools-karaf-features file is wrong. There should be dash ("-featurese.xml") instead of dot (".featurese.xml"): - file drools-karaf-features-6.2.0.Final-redhat-13-BZ1293965.features.xml should be drools-karaf-features-6.2.0.Final-redhat-13-BZ1293965-features.xml - this problem appears in directory "BZ-1293965" and in "BZ-1293965/maven-repo/org/drools/drools-karaf-features/6.2.0.Final-redhat-13-BZ1293965" directory. - If the user will merge patch Maven repository to his Maven repo, then Fuse will not be able to find "drools-karaf-features" file. It will be impossible to install BxMS features. 2. pom.xml is missing in "BZ-1293965/maven-repo/org/drools/drools-karaf-features/6.2.0.Final-redhat-13-BZ1293965". This pom.xml was available for all previous builds of this artifact. 3. Line 23 in "README.txt": File "drools-karaf-features-6.2.0.Final-redhat-6-BZ1293965.jar" is not present in the patch and can not be installed. This line should be removed from readme. 4. Line 25 in "README.txt": The parameter "-Dfile" is correct. However, the command will fail. The reason is described in point 1. 5. Line 50 in "README.txt": The command should be written more generally - for example: features:removeurl mvn:org.drools/drools-karaf-features/6.2.0.Final-<version>/xml/features
Created attachment 1115134 [details] patch md5sum jboss-brms-6.1.4-BZ-1293965.zip e74cb44a14b1826448acf00b9de17beb jboss-brms-6.1.4-BZ-1293965.zip The patch above contain the README fixes and add the pom for the features.xml.
Created attachment 1115136 [details] patch the correct MD5 is the: md5sum jboss-brms-6.1.4-BZ-1293965.zip 40aab240ed19efaf8ce6f390622966d6 jboss-brms-6.1.4-BZ-1293965.zip
Verified using reproducer attached to BZ#1293455 [1]. It was necessary to change KieSessionService.java in reproducer to achieve the correct behaviour. - line 20 of "KieSessionService.java" should be: kieContainer = kieServices.newKieContainer( kieServices.newReleaseId( groupId, artifactId, version ), this.getClass().getClassLoader() ); ). Regression tests passed successfully. [1] https://bugzilla.redhat.com/attachment.cgi?id=1108448 patch md5sum - 40aab240ed19efaf8ce6f390622966d6