Rishabh Sharma
Rishabh Sharma

Reputation: 862

Quarkus Maven Plugin: ResteasyReactiveJacksonProviderDefinedBuildItem not present

I am trying to use quarkus-maven-plugin to generate clients for my open-api spec. Here is a section from my pom.xml

  <dependencies>
    <!-- https://mvnrepository.com/artifact/io.quarkus/quarkus-maven-plugin -->
    <dependency>
      <groupId>io.quarkiverse.openapi.generator</groupId>
      <artifactId>quarkus-openapi-generator</artifactId>
      <version>2.8.0-lts</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/io.quarkus/quarkus-rest-client-jackson -->
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-rest-client-jackson</artifactId>
      <version>3.18.1</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-maven-plugin</artifactId>
        <version>3.18.1</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <goals>
              <goal>build</goal>
              <goal>generate-code</goal>
              <goal>generate-code-tests</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

However, this gives me the following error:

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.18.1:build (default) on project database-system-client: Failed to build quarkus application: Failed to load steps from class io.quarkus.rest.client.reactive.jackson.deployment.RestClientReactiveJacksonProcessor: Type io.quarkus.resteasy.reactive.jackson.common.deployment.processor.ResteasyReactiveJacksonProviderDefinedBuildItem not present -> [Help 1]

These are the things that I don't understand:

  1. Why is quarkus trying to generate reactive client when I am trying to generate simple client code?
  2. The error seems to be related to quarkus-rest-client-jackson, if I simply update the version to 3.17.3 - it works perfectly fine. I just found this workaround as a fluke, but if possible I want to understand a bit more about error and how it should be addressed.

Upvotes: 0

Views: 33

Answers (1)

Guillaume Smet
Guillaume Smet

Reputation: 10539

I think it's a compatibility issue between the OpenAPI Generator extension and Quarkus 3.18.

I wouldn't be surprised if 2.8.0-lts was tracking 3.15 LTS. If I were you, I would update to 2.8.1 without the -lts suffix.

Upvotes: 0

Related Questions