Home > Enterprise >  @WebFilter in maven dependency not being picked up by Quarkus
@WebFilter in maven dependency not being picked up by Quarkus

Time:09-28

I have a servlet filter declared using the @WebFilter annotation which is not being picked up by Quarkus. To make sure servlet filters actually works with Quarkus I created a second filter within the Quarkus application itself and it is working as expected.

How can I get a servlet filter that resides within a maven dependency to work in Quarkus?

CodePudding user response:

The link provided by @ladicek solved the problem - In my case what worked for me was to configure application.properties

quarkus.index-dependency.<name>.group-id=my-group
quarkus.index-dependency.<name>.artifact-id=my-artifact

How to create a Jandex index in Quarkus for classes in a external module

  • Related