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

Executable model - Invalid packages loaded for classpath container

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.19.0.Final, 7.20.0.Final
    • Fix Version/s: None
    • Component/s: executable model
    • Labels:
      None
    • Sprint:
      2019 Week 17-19
    • Story Points:
      7
    • Steps to Reproduce:
      Hide

      Create a simple multi-module project like that attached, where there are multiple kjar modules.
      Build this without the executable model (mvn clean install -DgenerateModel=NO), create the classpath container and print the produced bases and packages (e.g. run as mvn -f modA/pom.xml -q -e exec:java -Dexec.mainClass=olijohns.Run). Observe the expected output:

      BASE: modC
          PACKAGE: olijohns.modC
              FACTTYPE: olijohns.modC.FactC
      BASE: modB
          PACKAGE: olijohns.modB
              FACTTYPE: olijohns.modB.FactB
      BASE: modA
          PACKAGE: olijohns.modA
              FACTTYPE: olijohns.modA.FactA
      

      Repeat the process but with the executable model (-DgenerateModel=YES) and observe the invalid output:

      BASE: modC
      BASE: modB
          PACKAGE: olijohns.modA
              FACTTYPE: olijohns.modA.FactA
      BASE: modA
          PACKAGE: olijohns.modA
              FACTTYPE: olijohns.modA.FactA
      
      Show
      Create a simple multi-module project like that attached, where there are multiple kjar modules. Build this without the executable model (mvn clean install -DgenerateModel=NO), create the classpath container and print the produced bases and packages (e.g. run as mvn -f modA/pom.xml -q -e exec:java -Dexec.mainClass=olijohns.Run). Observe the expected output: BASE: modC PACKAGE: olijohns.modC FACTTYPE: olijohns.modC.FactC BASE: modB PACKAGE: olijohns.modB FACTTYPE: olijohns.modB.FactB BASE: modA PACKAGE: olijohns.modA FACTTYPE: olijohns.modA.FactA Repeat the process but with the executable model (-DgenerateModel=YES) and observe the invalid output: BASE: modC BASE: modB PACKAGE: olijohns.modA FACTTYPE: olijohns.modA.FactA BASE: modA PACKAGE: olijohns.modA FACTTYPE: olijohns.modA.FactA
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When building and running a maven multi-module project using several kjar modules the class-path container is incorrect and differs from the container created when not built with the executable model.

      See steps to reproduce and attached project.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                volothamp Luca Molteni
                Reporter:
                olijohns Olli Johnson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: