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

Project generation for SpringBoot doesn't work on OpenShift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.11.0
    • 0.10.1
    • Image
    • None

      Kogito images allow project generation using archetype in case user supplies GIT URL pointing to folder or file with resource files.

      However this works just for Quarkus, not for SpringBoot.
      For example this CR causes S2I build to fail:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoApp
      metadata:
        name: example-springboot
      spec:
        runtime: springboot
        build:
          gitSource:
            contextDir: dmn-springboot-example/src/main/resources
            uri: https://github.com/kiegroup/kogito-examples
      

      The failure reason is that kogito-quarkus-archetype is used to generate the project even when runtime field in CR specify springboot.
      The correct archetype which should be used for springboot runtime is https://github.com/kiegroup/kogito-runtimes/tree/master/archetypes/kogito-springboot-archetype

            vajain Vaibhav Jain
            ksuta Karel Suta
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: