From e89e19e43e0fe7bd4af84f23ab1182eddcb318e9 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Sun, 22 Aug 2021 05:57:28 +0200 Subject: [PATCH] Add a Jandex index to microprofile client packages (#10173) Quarkus, as one potential target for using the Java microprofile client generator, requires a Jandex index to be present in library jars for discovering beans inside these jars. Therefore, include Jandex index generation in the pom.xml for microprofile clients as explained here: https://quarkus.io/guides/cdi-reference#how-to-generate-a-jandex-index Generating and shipping the index is only a small overhead that is probably not worth an additional client option. --- .../Java/libraries/microprofile/pom.mustache | 13 +++++++++++++ .../petstore/java/microprofile-rest-client/pom.xml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache index d1a4e5352dc..6803b15c083 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache @@ -11,6 +11,19 @@ src/main/java + + org.jboss.jandex + jandex-maven-plugin + 1.1.0 + + + make-index + + jandex + + + + maven-failsafe-plugin 2.6 diff --git a/samples/client/petstore/java/microprofile-rest-client/pom.xml b/samples/client/petstore/java/microprofile-rest-client/pom.xml index 61d4de9908b..442314e9649 100644 --- a/samples/client/petstore/java/microprofile-rest-client/pom.xml +++ b/samples/client/petstore/java/microprofile-rest-client/pom.xml @@ -9,6 +9,19 @@ src/main/java + + org.jboss.jandex + jandex-maven-plugin + 1.1.0 + + + make-index + + jandex + + + + maven-failsafe-plugin 2.6