Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5551

Cannot configure kie-maven-plugin to read the rules from a different folder

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.31.0.Final, 7.32.0.Final, 7.33.0.Final, 7.34.0.Final, 7.35.0.Final, 7.36.0.Final, 7.37.0.Final, 7.38.0.Final, 7.39.0.Final, 7.40.0.Final
    • Fix Version/s: None
    • Component/s: executable model
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Save the DRL files in a different location other than java/src/resources folder. 

      Show
      Save the DRL files in a different location other than java/src/resources folder. 
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      kie-maven-plugin ignores sourceFolder configuration and there is no other option to set the rules directory. It always looks for rules in the project's folder.

      In our case the DRL files are being generated, so the plugin needs to look for them in the generated-resources folder in the target directory.

      We can workaround this using .gitignore and configure maven-clean to clean the folder inside the project structure, but it's quite messy.

       

       

        Gliffy Diagrams

          Attachments

          1. image.jpeg
            image.jpeg
            0.8 kB
          2. image.png
            image.png
            0.8 kB

            Activity

              People

              • Assignee:
                lucamolteni Luca Molteni
                Reporter:
                cchiru Ciprian Chiru
              • Votes:
                8 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: