Skip to content

Modules io.vertx.codegen.api + io.vertx.codegen.processor not found, required by io.vertx.sql.client.templates #1491

@afloarea

Description

@afloarea

Version

5.0.0.CR5

Context

I tried upgrading to version 5.0.0.CR5 a simple web app with an sqlite db (with module-info.java) but the application fails to start with the following problem:

Error occurred during initialization of boot layer
java.lang.module.FindException: Module io.vertx.codegen.api not found, required by io.vertx.sql.client.templates

Adding the following dependency:

        <dependency>
            <groupId>io.vertx</groupId>
            <artifactId>vertx-codegen-api</artifactId>
        </dependency>

changes the error to:

Error occurred during initialization of boot layer
java.lang.module.FindException: Module io.vertx.codegen.processor not found, required by io.vertx.sql.client.templates

Finally, adding:

        <dependency>
            <groupId>io.vertx</groupId>
            <artifactId>vertx-codegen-processor</artifactId>
        </dependency>

allows the application to start again.

The application uses the vertx sql client templates dependency but without codegen.

Do you have a reproducer?

No

Extra

Perhaps changing the io.vertx.sql.client.templates module-info file to have requires static:

  requires static io.vertx.codegen.processor;
  requires static io.vertx.codegen.api;

instead of requires (as it is now) would fix this?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions