Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1108070 - kie-maven-plugin throws error when kmodule including kbase
kie-maven-plugin throws error when kmodule including kbase
Status: CLOSED CURRENTRELEASE
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Build and Assembly (Show other bugs)
6.0.1
Unspecified Unspecified
high Severity high
: CR1
: 6.0.2
Assigned To: Mario Fusco
Jiri Locker
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 08:13 EDT by Amana
Modified: 2014-08-06 15:53 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A project that tried to include a kbase by specifying it through the kmodule.xml: <kbase name="kbase2" includes="kbase1"> would fail compilation. The compilation error was that the included kbase1 could not be found. An incorrect way of loading dependencies for a project caused this issue. This has now been fixed and projects can successfully include external kbase specified through the kmodule.xml file.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-08-06 15:53:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
kiebase-inclusion-6.0.1.7z (2.73 KB, application/x-7z-compressed)
2014-06-11 08:13 EDT, Amana
no flags Details
named-kiesession-6.0.1.7z (3.16 KB, application/x-7z-compressed)
2014-06-11 08:14 EDT, Amana
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 972383 None None None Never

  None (edit)
Description Amana 2014-06-11 08:13:33 EDT
Created attachment 907615 [details]
kiebase-inclusion-6.0.1.7z

Description of problem:

An error is experiencied by building a project that contains a kmodule.xml which uses an include such as:

    <kbase name="kbase2" includes="kbase1"> 

When generating a kjar there is an error indicating the included kbase could not be found:

[ERROR] Message [id=1, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
   text=Unable to build KieBase, could not find include: kbase1]

If using brms version 6.0.2-SNAPSHOT the build succeeds but with the release version 6.0.2-redhat-6 it fails. 


Version-Release number of selected component (if applicable):

BRMS 6.0.1

How reproducible:

Always

Steps to Reproduce:
1. Download attached files (named-kiesession-6.0.1.7z and kiebase-inclusion-6.0.1.7z);
2. unzip and 'mvn install' named-kiesession-6.0.1 project. It should be built successfully.
3. unzip and 'mvn install' kiebase-inclusion-6.0.1 project. It will throw the error above.

Actual results:

[ERROR] Message [id=1, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
   text=Unable to build KieBase, could not find include: kbase1]

Expected results:

It should build succesfully.

Additional info:
Comment 1 Amana 2014-06-11 08:14:27 EDT
Created attachment 907616 [details]
named-kiesession-6.0.1.7z
Comment 2 Amana 2014-06-11 08:16:04 EDT
> By 6.0.2-SNAPSHOT, does he mean community? Or a build out of the
product branch? Where is he getting that from?

6.0.2-SNAPSHOT is referred to in the source code
distributed by Red Hat in jboss-bpms-brms-6.0.0.GA-redhat-2-source.zip.
Comment 4 Edson Tirelli 2014-06-11 09:11:48 EDT
Amana, sorry, but still confused by this:

> 6.0.2-SNAPSHOT is referred to in the source code
distributed by Red Hat in jboss-bpms-brms-6.0.0.GA-redhat-2-source.zip.

You mean that this test fails with the product binaries, but work if building the product source code and using it? Can you please clarify?

Mario, can you please check if you are able to reproduce it using our current 6.0.x branch?
Comment 5 Mario Fusco 2014-06-12 09:10:33 EDT
The implementation of this use case was totally missing, so I don't see how it could have ever worked.

Fixed by https://github.com/droolsjbpm/drools/commit/7320e0cfd
Comment 6 Mario Fusco 2014-06-12 09:12:05 EDT
Cherry-picked to 6.1.x branch with https://github.com/droolsjbpm/drools/commit/d1f267f5e
Comment 7 Mario Fusco 2014-06-12 11:21:52 EDT
Cherry-picked to 6.0.x branch with https://github.com/droolsjbpm/drools/commit/9fa4169c6
Comment 8 Jiri Locker 2014-06-19 09:21:48 EDT
I used the attached project and reproduced the problem with 6.0.3-redhat-2 dependencies (6.0.2.ER3) and verified it is fixed with 6.0.3-redhat-3 (6.0.2.CR1) dependencies.

Interestingly, I couldn't reproduce in Business Central 6.0.2.ER3.

Note You need to log in before you can comment on or make changes to this bug.