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

Remove ReflectionConfigurationFiles property for Native compilation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Examples
    • None
    • 2020 Week 31-33 (from Jul 27)

      In order to make Quarkus examples work, we needed the "-H:ReflectionConfigurationFiles" property:

      <plugin>
                  <groupId>io.quarkus</groupId>
                  <artifactId>quarkus-maven-plugin</artifactId>
                  <executions>
                    <execution>
                      <goals>
                        <goal>native-image</goal>
                      </goals>
                      <configuration>
                        <enableHttpUrlHandler>true</enableHttpUrlHandler>
                        <!-- "-H:ReflectionConfigurationFiles" is a workaround for KOGITO-1893 -->
                        <additionalBuildArgs>-H:ReflectionConfigurationFiles=../../reflection.json,--allow-incomplete-classpath</additionalBuildArgs>
                      </configuration>
                    </execution>
                  </executions>
                </plugin>
      

      And also the "reflection.json" file.
      The issue was that DTOs didn't have the constructor in Native mode.

      The affected examples are:

      • kogito-travel-agency/extended/travels
      • kogito-travel-agency/extended/visas
      • onboarding-example/onboarding-quarkus

      Once the issue is resolved, the above configuration must be removed.

            jcarvaja@redhat.com Jose Carvajal Hilario
            jcarvaja@redhat.com Jose Carvajal Hilario
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: