Levi Ackerman
Levi Ackerman

Reputation: 1

Caused by: java.lang.NoClassDefFoundError: io/smallrye/openapi/ui/Option error

I am trying to implement OpenAPI UI in my project with Helidon 2.6.6

Added the following dependencies in my pom.xml

        <dependency>
            <groupId>io.helidon.microprofile.openapi</groupId>
            <artifactId>helidon-microprofile-openapi</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>io.smallrye</groupId>
            <artifactId>smallrye-open-api-ui</artifactId>
            <version>2.0.0</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>io.helidon.integrations.openapi-ui</groupId>
            <artifactId>helidon-integrations-openapi-ui</artifactId>
            <scope>runtime</scope>
        </dependency>

getting the following error, some jar files are missing

Caused by: java.lang.NoClassDefFoundError: io/smallrye/openapi/ui/Option

Upvotes: 0

Views: 21

Answers (1)

Tomas Langer
Tomas Langer

Reputation: 499

The smallrye-open-api-ui is already a transitive dependency of helidon-integrations-openapi-ui, and you are explicitly specifying a version for it. Your version is lower than the one used by Helidon, so maybe there is some API missing. If you remove the dependency from your pom file, thinks should work.

Upvotes: 0

Related Questions