Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1200301

Summary: OSGi: KIE-CI fails to load native Maven pom parser
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: medium Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen
Target Milestone: ER4   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:13:25 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
Fuse log warning none

Description Marek Winkler 2015-03-10 09:10:40 UTC
Created attachment 999783 [details]
Fuse log warning

Description of problem:

Native Maven parser used by KIE-CI fails to instantiate in OSGi environment, which leads to fallback to MinimalPomParser which is a very simple pom parser implementation provided by Drools. 

The limitation in that case is the following: MinimalPomParser ignores some pom file parts, e.g. kJar's parent pom. This means that users must not rely on those pom features (such as dependencies declared in parent pom in their kJars) when using KIE-CI in OSGi environment.

The problem manifested during verification of BZ 1100860 - the Fuse log file contains the following warnings (complete stacktrace attached):

16:15:46,942 | WARN  | NAPSHOT-thread-2 | Sisu                             | 299 - org.kie.scanner.osgi - 6.2.0.201503032251 | Error injecting: org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
com.google.inject.ProvisionException: Guice provision errors:

1) No implementation for org.apache.maven.repository.RepositorySystem was bound.
  while locating org.apache.maven.execution.DefaultMavenExecutionRequestPopulator


Version-Release number of selected component (if applicable):
BRMS 6.1.0 ER6
Fuse 6.1.1

How reproducible:
always

Steps to Reproduce:
1. run the reproducer from BZ 1100860
2. watch fuse log file for warnings

Actual results:
Log file contains warnings, certain pom features (such as parent) are not parsed by KIE-CI.

Expected results:
Log files does not contain the above warnings, KIE-CI parses kJar's parent pom.

Comment 2 Mario Fusco 2015-09-22 07:51:27 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/e80b85407

Comment 3 Marek Winkler 2015-10-23 15:53:14 UTC
Verified in BRMS 6.2.0 ER4 with Fuse 6.2.0.

The warnings are no longer present in Fuse log.