为什么 Vert.x codegen 无法创建 rx-fied 类?

Why Vert.x codegen fails to create rx-fied classes?

出于某种原因,我基于 4.0.2 的代码无法使用 codegen 生成 rx-fied 服务版本。

不过,VertxEBProxy 和 VertxProxyHandler 类 都按预期创建了。

这是一个演示项目:https://github.com/ashertarno/playground

请查看下面所需的依赖项:

implementation "io.vertx:vertx-core:$vertxVersion"
implementation "io.vertx:vertx-rx-java2:$vertxVersion"
implementation "io.vertx:vertx-codegen:$vertxVersion"
implementation "io.vertx:vertx-service-proxy:$vertxVersion"
implementation "io.vertx:vertx-rx-java2-gen:$vertxVersion"

annotationProcessor "io.vertx:vertx-codegen:$vertxVersion:processor"
annotationProcessor "io.vertx:vertx-service-proxy:$vertxVersion"

在这种情况下会缺少什么?

您必须添加 io.vertx:vertx-rx-java2-gen:$vertxVersion 作为 annotationProcessortestAnnotationProcessor。在我这样做之后,我生成了 类:

./build/classes/java/main/me/tarno/playground/reactivex/BaseServiceProxy.class
./build/classes/java/test/me/tarno/playground/reactivex/TestProxy.class