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

Executable model - Invalid packages loaded for classpath container

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • None
    • 7.19.0.Final, 7.20.0.Final
    • executable model
    • None
    • 2019 Week 17-19
    • 7
    • 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
    • NEW
    • 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.

      Attachments

        Activity

          People

            lmolteni@redhat.com Luca Molteni
            olijohns-cisco Olli Johnson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: