Bug 1200301 - OSGi: KIE-CI fails to load native Maven pom parser
Summary: OSGi: KIE-CI fails to load native Maven pom parser
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ER4
: 6.2.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-10 09:10 UTC by Marek Winkler
Modified: 2020-03-27 19:13 UTC (History)
1 user (show)

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


Attachments (Terms of Use)
Fuse log warning (19.69 KB, text/plain)
2015-03-10 09:10 UTC, Marek Winkler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-796 0 Major Resolved Native maven pom parser doesn't work under OSGi 2017-02-13 00:31:52 UTC

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.


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