[jboss-jira] [JBoss JIRA] (DROOLS-3277) KieScanner in Scala fat-jar application does not work due to Plexus configuration
Mario Fusco (Jira)
issues at jboss.org
Mon Dec 16 13:10:57 EST 2019
[ https://issues.redhat.com/browse/DROOLS-3277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-3277.
---------------------------------
Resolution: Explained
See https://docs.jboss.org/drools/release/7.25.0.Final/drools-docs/html_single/#_building_and_running_drools_in_a_fat_jar
> 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.|
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list