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>
<!-- .quarkus/quarkus-maven-plugin -->
<dependency>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator</artifactId>
<version>2.8.0-lts</version>
</dependency>
<!-- .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.jacksonmon.deployment.processor.ResteasyReactiveJacksonProviderDefinedBuildItem not present -> [Help 1]
These are the things that I don't understand:
- Why is quarkus trying to generate reactive client when I am trying to generate simple client code?
- The error seems to be related to
quarkus-rest-client-jackson
, if I simply update the version to3.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.
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/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/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.jacksonmon.deployment.processor.ResteasyReactiveJacksonProviderDefinedBuildItem not present -> [Help 1]
These are the things that I don't understand:
- Why is quarkus trying to generate reactive client when I am trying to generate simple client code?
- The error seems to be related to
quarkus-rest-client-jackson
, if I simply update the version to3.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.
- Can you please open an issue on GitHub? This sounds like a bug we need to fix – geoand Commented Feb 5 at 7:57
1 Answer
Reset to default 0I 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.