Red Hat Bugzilla – Bug 1014157
kie-ci does not resolve properties that are used for artifact version
Last modified: 2014-08-06 16:17:16 EDT
Description of problem:
When kjar has dependencies declared with their versions defined as property instead of having them placed as <version> tag directly on dependency then creation of kieContainer fails with NPE
Version-Release number of selected component (if applicable):
Steps to Reproduce:
NPE thrown when creating KieContainer
KieContainer is created successfully with all dependencies resolved properly
Might be worth investigating if various scope dependencies shall be resolved as well, mainly test and provided as in my opinion test dependencies should not be resolved at all and provided might be but I would say that when marking dependency as provided it is expected to already be on the main class loader and should not be project specific classloader.
reproducer as pull request https://github.com/droolsjbpm/drools/pull/261
Fixed by https://github.com/droolsjbpm/drools/commit/bcbfd88b3
Note that this fix works only if you have kie-ci on the classpath.
Mario Fusco <firstname.lastname@example.org> updated the status of jira DROOLS-266 to Resolved
*** Bug 1008538 has been marked as a duplicate of this bug. ***
Verified on BRMS 6.0.0.ER5.