]
Matteo Mortari updated DROOLS-1051:
-----------------------------------
Attachment: reproducer-DROOLS-1051.zip
Reproducers
KieScanner does not initialize if missing to locate a kjar dependency
of test scope
-----------------------------------------------------------------------------------
Key: DROOLS-1051
URL:
https://issues.jboss.org/browse/DROOLS-1051
Project: Drools
Issue Type: Bug
Affects Versions: 6.2.0.Final, 6.3.0.Final
Reporter: Matteo Mortari
Assignee: Mark Proctor
Priority: Minor
Attachments: reproducer-DROOLS-1051.zip
I will attach PR for proposal of patch for {{KieRepositoryScannerImpl}}.
I will attach reproducer code.
Suppose a kjar has a _test_ scope dependency which may not be resolvable at runtime; the
KieContainer will be created correctly (warning raised in log) but the initialization of
the KieScanner fail with NPE.
Expected behavior: also the KieScanner shall be able to initialize if the KieContainer is
working correctly.