Kie-Maven-Plugin (7.13.0.Final) not generating a "cache" file anymore

366 views
Skip to first unread message

KimJohn Quinn

unread,
Nov 7, 2018, 3:52:37 PM11/7/18
to Drools Usage
I just noticed the Kie Maven Plugin (7.13.0.Final) does not seem to be generating the "cache" file anymore for me.

The Maven module is defined as <packaging>kjar</packaging>.  I have a kmodule.xml inside the META-INF folder.

NOTE: This is running against JDK10 and as far as I can recall I have see the kbase.cache before.

I see this in the Maven output:

[INFO] --- kie-maven-plugin:7.13.0.Final:build (default-build) @ projects-dialogue-rules ---
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-core/7.13.0.Final/drools-core-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.core.io.impl.ResourceFactoryServiceImpl
[INFO] Adding Service org.drools.core.marshalling.impl.MarshallerProviderImpl
[INFO] Adding Service org.drools.core.concurrent.ExecutorProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-compiler/7.13.0.Final/drools-compiler-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.compiler.kie.builder.impl.KieServicesImpl
[INFO] Adding Service org.drools.compiler.builder.impl.KnowledgeBuilderFactoryServiceImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-model-compiler/7.13.0.Final/drools-model-compiler-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.modelcompiler.CanonicalKieModuleProvider
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/kie/kie-internal/7.13.0.Final/kie-internal-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.kie.internal.services.KieAssemblersImpl
[INFO] Adding Service org.kie.internal.services.KieRuntimesImpl
[INFO] Adding Service org.kie.internal.services.KieWeaversImpl
[INFO] Adding Service org.kie.internal.services.KieBeliefsImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-decisiontables/7.13.0.Final/drools-decisiontables-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.decisiontable.DecisionTableProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-scorecards/7.13.0.Final/drools-scorecards-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.scorecards.ScoreCardProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/kie-pmml/7.13.0.Final/kie-pmml-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service +org.kie.pmml.assembler.PMMLAssemblerService
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/jbpm/jbpm-bpmn2/7.13.0.Final/jbpm-bpmn2-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.jbpm.bpmn2.BPMN2ProcessProviderImpl
[INFO] Adding Service org.jbpm.bpmn2.xml.XmlProcessDumperFactoryServiceImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/jbpm/jbpm-flow-builder/7.13.0.Final/jbpm-flow-builder-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.jbpm.process.builder.ProcessBuilderFactoryServiceImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/jbpm/jbpm-flow/7.13.0.Final/jbpm-flow-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.jbpm.marshalling.impl.ProcessMarshallerFactoryServiceImpl
[INFO] Adding Service org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-workbench-models-guided-dtable/7.13.0.Final/drools-workbench-models-guided-dtable-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.workbench.models.guided.dtable.backend.GuidedDecisionTableProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-workbench-models-guided-template/7.13.0.Final/drools-workbench-models-guided-template-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.workbench.models.guided.template.backend.GuidedRuleTemplateProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-workbench-models-guided-scorecard/7.13.0.Final/drools-workbench-models-guided-scorecard-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.workbench.models.guided.scorecard.backend.GuidedScoreCardProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/optaplanner/optaplanner-core/7.13.0.Final/optaplanner-core-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service +org.optaplanner.core.impl.solver.kie.KieSolverAssemblerService
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/kie/kie-dmn-core/7.13.0.Final/kie-dmn-core-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service +org.kie.dmn.core.assembler.DMNAssemblerService
[INFO] Adding Service +org.kie.dmn.core.runtime.DMNRuntimeService
[INFO] Adding Service +org.kie.dmn.core.weaver.DMNWeaverService
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-compiler/7.13.0.Final/drools-compiler-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.compiler.kie.builder.impl.KieServicesImpl
[INFO] Adding Service org.drools.compiler.builder.impl.KnowledgeBuilderFactoryServiceImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/kie/kie-ci/7.13.0.Final/kie-ci-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.kie.scanner.KieScannerFactoryServiceImpl
[INFO] Adding Service org.kie.scanner.MavenClassLoaderResolver
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/drools/drools-core/7.13.0.Final/drools-core-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.drools.core.io.impl.ResourceFactoryServiceImpl
[INFO] Adding Service org.drools.core.marshalling.impl.MarshallerProviderImpl
[INFO] Adding Service org.drools.core.concurrent.ExecutorProviderImpl
[INFO] Loading kie.conf from  jar:file:/home/projects/.m2/repository/org/kie/kie-internal/7.13.0.Final/kie-internal-7.13.0.Final.jar!/META-INF/kie.conf in classloader java.net.FactoryURLClassLoader@6eaa6b0c
[INFO] Adding Service org.kie.internal.services.KieAssemblersImpl
[INFO] Adding Service org.kie.internal.services.KieRuntimesImpl
[INFO] Adding Service org.kie.internal.services.KieWeaversImpl
[INFO] Adding Service org.kie.internal.services.KieBeliefsImpl
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/home/projects/.m2/repository/com/thoughtworks/xstream/xstream/1.4.10/xstream-1.4.10.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] KieModule was added: MemoryKieModule[releaseId=org.default:artifact:1.0.0]
[INFO] kieMap not present
[INFO] Kie Map empty
[INFO] KieModule successfully built!
[INFO] 
[INFO] --- kie-maven-plugin:7.13.0.Final:injectreactive (default-injectreactive) @ projects-dialogue-rules ---


But, looking in the "classes" folder after a mvn install I do not see the cache file anymore.

KimJohn Quinn

unread,
Nov 8, 2018, 8:17:15 AM11/8/18
to Drools Usage
One thing I noticed, it is generating the java files in the dump folder but not compiling them.

KimJohn Quinn

unread,
Nov 8, 2018, 10:34:44 AM11/8/18
to Drools Usage
I downloaded the latest 'kie-maven-plugin-example" from GitHub and ran a "mvn clean install."  I see the same results - no cache file.  

Is the cache file still used/created when using the plugin and a part of the KJar?


On Wednesday, November 7, 2018 at 3:52:37 PM UTC-5, KimJohn Quinn wrote:

KimJohn Quinn

unread,
Nov 8, 2018, 10:46:54 AM11/8/18
to Drools Usage
I also tried running the example using JDK8 and same results - no cache.

So, is the cache file still needed/created?  Just want to know if I am going down a path I shouldn't be...

Thanks.


On Wednesday, November 7, 2018 at 3:52:37 PM UTC-5, KimJohn Quinn wrote:

Kim Zeevaarders

unread,
Feb 28, 2020, 4:33:44 AM2/28/20
to Drools Usage
Hi Kim,

did you manage to find an answer to your question? I just migrated from Drools 6 to Drools 7 and noticed my kbasecache is tenfold smaller than before... In the project where I am using this kjar i get unexpected global errors whereas in my unit tests in the kjar prject itself i dont get this errors. i think it might be because my decision tables are not included in the cache

Regards,

Kim


Op donderdag 8 november 2018 16:46:54 UTC+1 schreef KimJohn Quinn:

KimJohn Quinn

unread,
Feb 28, 2020, 10:44:36 AM2/28/20
to drools...@googlegroups.com
Hello Kim (weird, i had to double-read this message at first because our names are similar).

We are using the latest version of Drools and I do see the cache file, from the POM and generated from code.  From our end, everything seems to be working fine.

Are you building the KJar through the maven plugin only?

Thanks.

KJQ

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/qj8a6-nni8A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/1729d1d9-8d35-4e27-bf47-94a4d43a6273%40googlegroups.com.

Kim Zeevaarders

unread,
Feb 28, 2020, 11:43:12 AM2/28/20
to drools...@googlegroups.com
Hi Kim,

I managed to fix the problem today. The problem was indeed that my decision tables weren't picked up anymore by the kie-maven-plugin. After I converted them from xls to xlsx files and altered the Ruleset value in the table to match the folder structure it worked! I actually don't know which one of my changes solved the problem so it could be that only one of them was needed to get it to work. 

Thanks for the quick reaction anyways! 

Regards, 

Kim


Op vr 28 feb. 2020 16:44 schreef KimJohn Quinn <k...@logicdrop.com>:
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAF1TLv5mQafcnctDmxDM6ZFVekc9riij8wgUZ30-RixT3_o9bg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages