Bug 1035685 - KieScanner doesn't work on a KieContainer using a maven version range
Summary: KieScanner doesn't work on a KieContainer using a maven version range
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.0.0
Assignee: Mario Fusco
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-28 09:57 UTC by Mario Fusco
Modified: 2014-08-06 20:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:20:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-356 0 None None None 2014-08-29 00:07:57 UTC

Description Mario Fusco 2013-11-28 09:57:26 UTC
It is currently possible to create a KieContainer with a ranged version instead of a fixed one, but this range is not used by the KieScanner that instead consider only the fixed version of the first fetched project.

Comment 1 JBoss JIRA Server 2013-11-28 09:58:08 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-356 to Resolved

Comment 2 Mario Fusco 2013-11-28 09:58:40 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/ba79df043

Comment 4 Mark Proctor 2013-11-28 13:15:50 UTC
Some background for this. When a KieModule is looked up, it allows a version String. The KieModule resolves a jar using Maven. As such engineers expect it to support any standard Maven convention for Strings. But it did not support versions. Further it would lose the original version request; such as -SNAPSHOT. So scanNow would not pick up the latest.

The change allows any Maven version string to be passed, as any engineer would expect, and to ensure that original string is used each time scanNow is called.

Comment 5 JBoss JIRA Server 2013-11-28 13:34:40 UTC
Mark Proctor <mproctor> made a comment on jira DROOLS-356

Some background for this. When a KieModule is looked up, it allows a version String. The KieModule resolves a jar using Maven. As such engineers expect it to support any standard Maven convention for Strings. But it did not support versions. Further it would lose the original version request; such as -SNAPSHOT. So scanNow would not pick up the latest.

The change allows any Maven version string to be passed, as any engineer would expect, and to ensure that original string is used each time scanNow is called.

The current work around is to create an empty wrapper project, to control deployment updates. This project's pom would be resolved by maven, and thus all version syntax is supported and corrected resolved.

Comment 6 Tomas Schlosser 2014-01-07 08:50:37 UTC
Verified in BRMS 6.0.1-redhat-2


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