]
Mario Fusco resolved DROOLS-3277.
---------------------------------
Resolution: Explained
See
KieScanner in Scala fat-jar application does not work due to Plexus
configuration
---------------------------------------------------------------------------------
Key: DROOLS-3277
URL:
https://issues.redhat.com/browse/DROOLS-3277
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.13.0.Final
Reporter: Michael Reynolds
Assignee: Mario Fusco
Priority: Major
Attachments: components.xml, out.log
The configuration required for all the KIE related components wired together with Sisu
and in Plexus is spread out among many files with the same name/location in various
library jars.
The SBT assembly plugin is the standard for building a Scala fat-jar application. When it
multiple versions of the same file when squashing the jars together it attempts to apply a
merge strategy to them. For the Sisu configuration, it is simple enough to apply a
"concat" merge strategy. However, the META-INF/plexus/components.xml cannot be
automatically merged. Unless all the elements are present, various component lookups will
fail when using the KieScanner.
I've provided the following attachments related to this case:
||File||Description||
|out.log|Output of starting the fat-jar application without properly merging the Sisu and
Plexus configuration files|
|components.xml|The merged components.xml file I created that resolves this issue.|