forked from loafle/openapi-generator-original
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.
This commit is contained in:
@@ -9,6 +9,19 @@
|
||||
<build>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jboss.jandex</groupId>
|
||||
<artifactId>jandex-maven-plugin</artifactId>
|
||||
<version>1.1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-index</id>
|
||||
<goals>
|
||||
<goal>jandex</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-failsafe-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
|
||||
Reference in New Issue
Block a user