我有一个使用 jandex 插件索引的依赖项,正如 Guilhaume Smet 对这个问题的回答所解释的那样:How to create a Jandex index in Quarkus for classes in a external module
它工作得很好,然后我决定使用扩展hibernate-orm-panache。一旦我将它添加到 pom 中,我就会收到以下错误:
Failed to execute goal io.quarkus:quarkus-maven-plugin:1.5.2.Final:build (default) on project ####: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.hibernate.orm.panache.deployment.PanacheHibernateResourceProcessor#validate threw an exception: java.lang.IllegalStateException: io.quarkus.builder.BuildException: Build failure: The class java.lang.Enum is not inside the Jandex index
(...)
Caused by: io.quarkus.builder.BuildException: Build failure: The class java.lang.Enum is not inside the Jandex index
[ERROR] at io.quarkus.panache.common.deployment.JandexUtil.isSubclassOf(JandexUtil.java:348)
[ERROR] at io.quarkus.hibernate.orm.panache.deployment.PanacheHibernateResourceProcessor.validate(PanacheHibernateResourceProcessor.java:177)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:932)
那是一个错误吗?有转机吗?