[jboss-jira] [JBoss JIRA] (DROOLS-1694) Inherited kbases, across multiple modules, fails to build via the kie-maven-plugin
Alistair Black (JIRA)
issues at jboss.org
Fri Aug 4 06:31:00 EDT 2017
[ https://issues.jboss.org/browse/DROOLS-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alistair Black updated DROOLS-1694:
-----------------------------------
Steps to Reproduce: I have created a reproducer project (https://github.com/alistairblack/DROOLS-1694) to demonstrate. In this project there are two rule modules (each constructs one kbase), which are both included in a master rule packaging module (with a view to constructing a single KJAR, for deployment, from the referenced modules). If you build the rule modules individually (ruleModuleOne/ruleModuleTwo) they build without error. If you then build the master rule packaging module (rules) - that also works; However, if you build the root project, it fails on the rules module with the reported error. (was: I have created a reproducer project to demonstrate. In this project there are two rule modules (each constructs one kbase), which are both included in a master rule packaging module (with a view to constructing a single KJAR, for deployment, from the referenced modules). If you build the rule modules individually (ruleModuleOne/ruleModuleTwo) they build without error. If you then build the master rule packaging module (rules) - that also works; However, if you build the root project, it fails on the rules module with the reported error.)
> Inherited kbases, across multiple modules, fails to build via the kie-maven-plugin
> ----------------------------------------------------------------------------------
>
> Key: DROOLS-1694
> URL: https://issues.jboss.org/browse/DROOLS-1694
> Project: Drools
> Issue Type: Bug
> Components: decision tables
> Affects Versions: 6.3.0.Final
> Reporter: Alistair Black
> Assignee: Mario Fusco
>
> I am working on a multi-module BRMS project, with each module encapsulating a set of rules forming a single knowledge base. There is a "packaging" module which inherits each of these modules in order to generate a KJAR for deployment purposes. The application then utilises this KJAR via the KieScanner/ReleaseId approach to facilitate dynamic rule loading at runtime and decoupling of application/rules.
> Having taken the above approach I have encountered an issue where the master build fails when building the "packaging" module as part of the main project build. If the module is built on it's own, then it completes without error.
> The error reported is:
> {{[ERROR] Failed to execute goal org.kie:kie-maven-plugin:6.3.0.Final:build (default-build) on project rules: Execution default-build of goal org.kie:kie-maven-plugin:6.3.0.Final:build failed: Illegal class for global. Expected [org.drools.template.parser.DefaultGenerator], found [org.drools.template.parser.DefaultGenerator]. -> [Help 1]}}
> Having liased with Maciej Swiderski he has asked me to report it as a bug.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list