[jboss-jira] [JBoss JIRA] (DROOLS-3875) Executable model - Invalid packages loaded for classpath container
Olli Johnson (Jira)
issues at jboss.org
Wed Apr 10 12:44:01 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olli Johnson updated DROOLS-3875:
---------------------------------
Steps to Reproduce:
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. Observe the expected output:
{code:java}
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
{code}
Repeat the process but with the executable model (-DgenerateModel=YES) and observe the invalid output:
{code:java}
BASE: modC
BASE: modB
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
BASE: modA
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
{code}
was:
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. 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
```
> Executable model - Invalid packages loaded for classpath container
> ------------------------------------------------------------------
>
> Key: DROOLS-3875
> URL: https://issues.jboss.org/browse/DROOLS-3875
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.19.0.Final, 7.20.0.Final
> Reporter: Olli Johnson
> Assignee: Luca Molteni
> Priority: Blocker
> Attachments: drools-classpath-error.zip
>
>
> 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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list