Closed rlubke closed 1 year ago
In previous Jandex Maven plugin versions (before 3.0), each fileset got its own index, whose name (and, coincidentally, also path, though I don't think that was ever intended) was always META-INF/<indexName>
.
Since 3.0, all filesets contribute to a single index, whose location is configured using <indexDir>
and <indexName>
(see https://smallrye.io/jandex/jandex/3.1.3/maven/advanced.html#_index_location_and_version).
If you need to create multiple indices, you need to use multiple executions of the Jandex Maven plugin.
Specifically the example above can be fixed by splitting <indexName>country-index/custom.idx</indexName>
into <indexDir>${project.build.outputDirectory}/META-INF/country-index</indexDir> <indexName>custom.idx</indexName>
.
On the other hand, maybe we should support <indexName>
containing a path, if that worked before (even if perhaps unintentionally). I'll fix that, should be easy.
Consider the following jandex plugin configuration:
This fails with the following:
Workaround: use the antrun plugin to create the target directories prior to generating the indexes.