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

SpringBoot archetype does not work with custom groupId

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.3.0
    • 0.2.0
    • Core Engine
    • None

      When using SpringBoot archetype, generated project doesn't work for me (fails with an error if I try to run it in quarkus dev mode) if I use a custom groupId like "com.company".

      Generated KogitoApplication will contain this: @SpringBootApplication(scanBasePackages=

      {"com.company.**"}

      )
      However, process included by default has package org.kie.kogito and therefore Process class is generated in that package and application will fail to start as it is only searching in "com.company".

      Following workarounds are possible:
      (1) update KogitoApplication to @SpringBootApplication(scanBasePackages=

      {"org.kie.kogito.**","com.company.**"}

      )
      (2) if I update package of BPMN2 process to com.company it still doesn't work as then cxf complains it can't find Resource, had to update application.properties to also include com.company in that case
      (3) Generate project with groupId org.kie.kogito it also works (as this is also package where process is generated)

            swiderski.maciej Maciej Swiderski (Inactive)
            kverlaen@redhat.com Kris Verlaenen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: