Bug 1305798 - KIE-CI does not parse kjar's dependencies if their version is not declared in the pom
Summary: KIE-CI does not parse kjar's dependencies if their version is not declared in...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-09 09:39 UTC by Marek Winkler
Modified: 2020-03-27 19:03 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:03:48 UTC
Type: Bug


Attachments (Terms of Use)

Description Marek Winkler 2016-02-09 09:39:51 UTC
Description of problem:

KIE-CI does not parse kjar's dependencies if their version is not declared in the pom.xml (it is declared in the parent pom's <dependencyManagement>). KIE-CI also does not evaluate any properties in the pom, so specifying kjar's dependency version as ${project.version} does not work.

This is visible mainly in OSGi environment, because the kjar's dependencies are not available on the classpath.

There is an obvious workaround to specify explicitely the dependency version, but this approach is not maintainable well in larger projects.

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

How reproducible:
always

Steps to Reproduce:
1. prepare a kjar which declares a dependency on another jar, eg. with domain model classes, but the dependency version is inherited from parent pom's <dependencyManagement>

2. try to build the kjar

I am going to provide a better reproducer later (a test not tight to OSGi).

Actual results:
KieModule is built, but the rules fail to compile because of missing classes from the dependency (KieContainer creation does not fail, but the rules are not available - they do not fire).

Expected results:
KieModule is built successfully.

Comment 2 Marek Winkler 2016-02-10 12:45:55 UTC
Created PR with reproducer: https://github.com/droolsjbpm/drools/pull/636


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