Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6938

BPMN Messages nodes with Quarkus + Avro Maven Plugin causes build errors

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Optional
    • None
    • None
    • Documentation
    • None
    • False
    • None
    • False
    • ---
    • ---

    Description

      I'm trying to use Avro with Kogito. I brought the avro-maven-plug into my project. Everything worked fine, until I added a Message Node to my BPMN process. Then the build would blow up with some very cryptic error messages like `Cannot find method lambda$process$0[]`

      I was able to solve the problem 3 ways:

      • Remove the avro-maven-plugin. Not ideal
      • Remove the message node from the BPMN process. Non-starter
      • Change the Avro output directory (for the Maven plugin) to something other than `{project.build.directory}/generated-sources` (which is not the standard default but it's a value I've been using in other projects without trouble). Actually pretty nice workaround.

      Nonetheless, I spent quite a while trying to troubleshoot the problem. It would be nice to have better error messaging here, better documentation, or for the plugin not to clash with Kogito.

      Here is an example showing the bug: https://github.com/jongunter/kogito-avro-bug/tree/main

      Thank you in advance for your help. Please let me know if I can provide any clarification.

      Attachments

        Activity

          People

            martinweiler Martin Weiler
            jon.gunter@verizon.com Jon Gunter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: