Bug 1039676

Summary: Kie Maven plugin don't use the project classpath
Product: [Retired] JBoss BRMS Platform 6 Reporter: Mario Fusco <mfusco>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0CC: etirelli, mwinkler, rrajasek
Target Milestone: CR1   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:16:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Maven project with reproducer none

Description Mario Fusco 2013-12-09 18:25:24 UTC
When compiling drls the kie maven plugin uses the plugin classpath instead of the project one. This imply that it is necessary to duplicate the dependencies used by the kie project also inside the plugin declaration, as reported by this email: http://drools.46999.n3.nabble.com/rules-users-Drool-6-0-0-Final-2-question-re-kie-maven-plugin-please-td4027117.html

Comment 1 Mario Fusco 2013-12-09 18:26:11 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/b8a952e88

Comment 3 Marek Winkler 2014-01-03 17:04:04 UTC
The problem persists with BRMS 6.0.0 ER7 (6.0.1-redhat-2).

Please try to build the attached maven project (in kie-cdi-war-example, execute mvn clean install) to reproduce the problem.

If you uncomment kie-maven-plugin's dependency on kie-cdi-war-model (in kie-cdi-war-example/kie-module/pom.xml), the build succeeds.

Comment 4 Marek Winkler 2014-01-03 17:05:04 UTC
Created attachment 845018 [details]
Maven project with reproducer

Adding a maven project with reproducer.

Comment 5 Marek Winkler 2014-01-03 17:07:56 UTC
The problem persists also in Drools 6.0.1-SNAPSHOT.

Comment 6 Mario Fusco 2014-01-07 13:44:32 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/fb0c4e7f0

Comment 7 Marek Winkler 2014-01-23 18:16:20 UTC
Verified on BRMS 6.0.0 CR1.