1 回答

TA貢獻1824條經驗 獲得超6個贊
我設法糾正了在我的父pom中添加jandex maven插件的問題,遵循@gsmet
<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
<!-- phase is 'process-classes by default' -->
<configuration>
<!-- Nothing needed here for simple cases -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
該插件將生成一個名為jandex.idx的文件,其中包含對目標/類文件夾中包含的所有.class文件的引用。
└── target
├── classes
│ ├── META-INF
│ │ └── jandex.idx <==== here
│ └── org
│ └── acme
│ └── quarkus
│ └── portfolio
│ └── persistence
│ └── repository
│ ├── SqlRepositoryAdapter.class
│ └── SqlRepositoryProvider.class
添加回答
舉報