Uploaded image for project: 'BxMS Documentation'
  1. BxMS Documentation
  2. BXMSDOC-2063

When shading Drools jars in an uber-jar, META-INF/kie.conf file is needed

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 7.0
    • BRE
    • None

      When shading Drools jars into an uber-jar (packing project dependencies into one final project jar), a META-INF/kie.conf file needs to be created in the resouces folder of the uber-jar. This file contains references to Drools service classes (like KieServices).

      We have a new component in Drools that loads and handles service classes, called ServiceRegistry. This registry needs a kie.conf file so it knows which class it should load for each specific service. For normal kjars, no custom kie.conf file is needed, because the Drools jars are not packed into an uber-jar, so kie.conf is at its proper location (it is in each Drools jar). However when packed in an uber-jar, there is no META-INF/kie.conf file in the resources folder of the uber-jar, which is the location ServiceRegistry searches for this conf file.

              viyengar@redhat.com Vidya Iyengar
              tzimanyi@redhat.com Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: