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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.29.0.Final
    • 7.27.0.Final
    • tools
    • 2019 Week 41-43 (from Okt 7)
    • 3
    • 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
    • Workaround Exists
      • Define the versions of the dependent kjar projects in the respective pom itself instead of relying on a bom
    • NEW
    • NEW

      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.27.0.Final and -DgenerateModel=NO
      13:01:05,903 [ERROR] Unable to build KieBase, could not find include: subkbase
      13:01:05,908 [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.27.0.Final:build (default-build) on project kbase-parent: Execution default-build of goal org.kie:kie-maven-plugin:7.27.0.Final:build failed: Unable to get KieModule, Errors Existed: Error Messages:
      13:01:05,910 [ERROR] Message [id=1, kieBase=parentkbase, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
      13:01:05,911 [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).

              tzimanyi@redhat.com Tibor Zimányi
              rhn-support-mputz Martin Weiler (Inactive)
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: