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

Compilation error if quarkus-resteasy is present but quarkus-resteasy-jackson is not

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • False
    • False

      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:build (default) on project optaplanner-quarkus-drl-integration-test: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [ERROR]     [error]: Build step org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.IllegalStateException: src/main/java/org/kie/kogito/app/GlobalObjectMapper.java (24:914) : Only a type can be imported. io.quarkus.jackson.ObjectMapperCustomizer resolves to a package
      [ERROR] src/main/java/org/kie/kogito/app/GlobalObjectMapper.java (27:1012) : ObjectMapperCustomizer cannot be resolved to a type
      [ERROR] src/main/java/org/kie/kogito/app/GlobalObjectMapper.java (24:914) : Only a type can be imported. io.quarkus.jackson.ObjectMapperCustomizer resolves to a packagesrc/main/java/org/kie/kogito/app/GlobalObjectMapper.java (27:1012) : ObjectMapperCustomizer cannot be resolved to a type
      [ERROR]     at org.kie.kogito.quarkus.common.deployment.InMemoryCompiler.compile(InMemoryCompiler.java:104)
      

      Additional note:
      This file should be generated only if REST is available
      https://github.com/kiegroup/kogito-runtimes/blob/main/kogito-codegen-modules/kogito-codegen-rules/src/main/java/org/kie/kogito/codegen/rules/IncrementalRuleCodegen.java#L307

            dzonca@redhat.com Daniele Zonca
            dzonca@redhat.com Daniele Zonca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: