Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1694

Inherited kbases, across multiple modules, fails to build via the kie-maven-plugin

    Details

    • Sprint:
      2017 Week 32-33
    • Steps to Reproduce:
      Hide

      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.

      Show
      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.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mdessi Massimiliano Dessi
                Reporter:
                alistairblack Alistair Black
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: