Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
7.36.0.Final
-
None
-
NEW
-
NEW
Description
I try to integrate a Drools project in a maven application. The Drools app is running perfectly on his own, but when I try to integrate it in the quarkus project, I get a java.lang.NullPointerException.
After some researches, it seems to happen because KieServices.Factory.get() return me null because of kie.conf.
Drools Site Quote is: Many modules of Drools (e.g. drools-core, drools-compiler) have a file named kie.conf containing the names of the classes implementing the services provided by the corresponding module. When running Drools in a fat JAR, for example created by the Maven Shade Plugin, those various kie.conf files need to be merged, otherwise , the fat JAR will contain only 1 kie.conf from a single dependency, resulting into errors. You can merge resources in the Maven Shade Plugin using transformers, like this:
how can we configure the same for Quarkus Project ? or is there any way to load these file externally ..