[jboss-jira] [JBoss JIRA] (DROOLS-3277) KieScanner in Scala fat-jar application does not work due to Plexus configuration
Michael Reynolds (Jira)
issues at jboss.org
Wed Nov 7 16:39:00 EST 2018
Michael Reynolds created DROOLS-3277:
----------------------------------------
Summary: KieScanner in Scala fat-jar application does not work due to Plexus configuration
Key: DROOLS-3277
URL: https://issues.jboss.org/browse/DROOLS-3277
Project: Drools
Issue Type: Feature Request
Components: core engine
Affects Versions: 7.13.0.Final
Reporter: Michael Reynolds
Assignee: Mario Fusco
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.|
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list