diff --git a/extensions/tika/deployment/src/main/java/io/quarkus/tika/deployment/TikaProcessor.java b/extensions/tika/deployment/src/main/java/io/quarkus/tika/deployment/TikaProcessor.java index 6ca09a9..154f428 100644 --- a/extensions/tika/deployment/src/main/java/io/quarkus/tika/deployment/TikaProcessor.java +++ b/extensions/tika/deployment/src/main/java/io/quarkus/tika/deployment/TikaProcessor.java @@ -16,6 +16,7 @@ import org.apache.tika.detect.EncodingDetector; import org.apache.tika.parser.Parser; +import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.BeanContainerBuildItem; import io.quarkus.deployment.Capabilities; import io.quarkus.deployment.annotations.BuildProducer; @@ -32,6 +33,7 @@ import io.quarkus.tika.TikaParseException; import io.quarkus.tika.runtime.TikaConfiguration; import io.quarkus.tika.runtime.TikaParserParameter; +import io.quarkus.tika.runtime.TikaParserProducer; import io.quarkus.tika.runtime.TikaRecorder; public class TikaProcessor { @@ -52,6 +54,11 @@ public class TikaProcessor { private TikaConfiguration config; + @BuildStep + AdditionalBeanBuildItem beans() { + return AdditionalBeanBuildItem.builder().addBeanClasses(TikaParserProducer.class).build(); + } + @BuildStep @Record(ExecutionTime.STATIC_INIT) TikaParsersConfigBuildItem initializeTikaParser(BeanContainerBuildItem beanContainer, TikaRecorder recorder) diff --git a/extensions/tika/runtime/src/main/resources/META-INF/beans.xml b/extensions/tika/runtime/src/main/resources/META-INF/beans.xml deleted file mode 100644 index e69de29..0000000