Quarkus: Importing libs with Provider

Created on 9 Apr 2020  路  2Comments  路  Source: quarkusio/quarkus

Hey,
I created a multi-module project with common classes being used in different Quarkus modules in my project.
For example the common module, contains ExceptionMappers that are used throughout my code, with @Provider annotation.
I couldn't get the mappers to run. Do I need to do something special in order to make it work ?

Thank you

kinquestion

Most helpful comment

You probably want to index them. Check this:
https://quarkus.io/guides/cdi-reference#how-to-generate-a-jandex-index.

I think you want something similar as it was answered here:
https://stackoverflow.com/a/55513723 -> Check Indexing other dependencies part.

All 2 comments

You probably want to index them. Check this:
https://quarkus.io/guides/cdi-reference#how-to-generate-a-jandex-index.

I think you want something similar as it was answered here:
https://stackoverflow.com/a/55513723 -> Check Indexing other dependencies part.

Works thnx!

Was this page helpful?
0 / 5 - 0 ratings