Build error - jandex index not found for java.time.OffsetDateTime

372 views Asked by At

I have a multi-module Maven project that uses Quarkus and Kogito, with MongoDb persistence. The module with the Kogito process definition is using beans from another module. One of the beans has a property of type java.time.OffsetDateTime

2

There are 2 answers

0
Neus Miras On

The issue can be related with the location of the beans, when you have additional modules containing CDI beans, entities, objects serialized as JSON, you need to explicitly index them. Here you can find different ways to do that: https://stackoverflow.com/a/55513723

0
Cristiano Nicolai On

There is been some improvements related to time-based fields in Kogito since version 1.18, see https://issues.redhat.com/browse/KOGITO-6756. Would recommend upgrading if you're using an older version.