[jboss-jira] [JBoss JIRA] (DROOLS-3523) kbase 'packages' in kmodule.xml works differently with executable-model
Toshiya Kobayashi (Jira)
issues at jboss.org
Tue Jan 15 04:42:01 EST 2019
Toshiya Kobayashi created DROOLS-3523:
-----------------------------------------
Summary: kbase 'packages' in kmodule.xml works differently with executable-model
Key: DROOLS-3523
URL: https://issues.jboss.org/browse/DROOLS-3523
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.16.0.Final
Reporter: Toshiya Kobayashi
Assignee: Luca Molteni
Attachments: execution-model-test-kbase-package.zip
When we configure 'packages' attribute in kbase element in kmodule.xml, normal build works but executable-model build results in empty kbase.
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<kmodule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://jboss.org/kie/6.0.0/kmodule">
<kbase name="mykbase" packages="rules" default="true">
<ksession name="myksession" default="true" />
</kbase>
</kmodule>
{code}
executable-model seems to expect that the kbase's packages value must match the "package" declaration in DRL.
Please confirm the behaviour with the attached execution-model-test-kbase-package.zip.
* Normal build
** mvn clean install -DskipTests
** mvn clean test
{noformat}
...
kiePackages = [[Package name=rules], [Package name=com.sample]]
Hello, john
...
{noformat}
* executable-model build
** mvn clean install -DgenerateModel=YES -DskipTests
** mvn clean test
{noformat}
...
kiePackages = []
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.341 s <<< FAILURE! - in com.example.DroolsTest
...
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list