Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1107

kie-maven-plugin fails with nested kbases and dependency versions declared in bom

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.4.1.GA
    • Fix Version/s: 7.5.1.GA
    • Component/s: BRE
    • Labels:
    • Target Release:
    • Fix Build:
      CR1
    • Steps to Reproduce:
      Hide
      • Unzip attached hierarchical-kbase-bom.zip
      • cd hierarchical-kbase-bom/
      • sh run.sh and notice the build failures
      • edit Drools74Ex061_kbase_parent/pom.xml and enable the <version> tag for the kbase-sub dependency
      • run.sh again - notice that only the 7.23.x build fails due to RHDM-1106
      Show
      Unzip attached hierarchical-kbase-bom.zip cd hierarchical-kbase-bom/ sh run.sh and notice the build failures edit Drools74Ex061_kbase_parent/pom.xml and enable the <version> tag for the kbase-sub dependency run.sh again - notice that only the 7.23.x build fails due to RHDM-1106
    • Story Points:
      1
    • Workaround:
      Workaround Exists
    • Workaround Description:
      • Define the versions of the dependent kjar projects in the respective pom itself instead of relying on a bom
    • Sprint:
      2019 Week 41-43 (from Okt 7)
    • QE Test Coverage:
      +

      Description

      When we build 2 kjars and one kbase "includes" another, kie-maven-plugin fails to resolve the sub kbase if the dependency version is declared in a common bom:

      Running test with rules version 7.23.0.Final-redhat-00003 and -DgenerateModel=NO
      12:41:58,315 [ERROR] Unable to build KieBase, could not find include: subkbase
      12:41:58,320 [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00003:build (default-build) on project kbase-parent: Execution default-build of goal org.kie:kie-maven-plugin:7.23.0.Final-redhat-00003:build failed: Unable to get KieModule, Errors Existed: Error Messages:
      12:41:58,323 [ERROR] Message [id=1, kieBase=parentkbase, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
      12:41:58,324 [ERROR]    text=Unable to build KieBase, could not find include: subkbase]
      

      Note that such a build is successful with RHDM 7.3.1 if the executable model is not used (see reproducer).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tzimanyi Tibor Zimanyi
                  Reporter:
                  mputz Martin Weiler
                  Tester:
                  Daniel Rosa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: