diff --git a/bom/application/pom.xml b/bom/application/pom.xml
index c0541996cd577..37833b14a5cad 100644
--- a/bom/application/pom.xml
+++ b/bom/application/pom.xml
@@ -137,7 +137,7 @@
3.5.7
2.12.9
- 1.22
+ 1.24.1
1.4
1.2.1
3.3.1
@@ -2476,6 +2476,10 @@
org.apache.cxf
cxf-rt-rs-client
+
+ commons-logging
+ commons-logging
+
${tika.version}
diff --git a/extensions/tika/deployment/src/test/java/io/quarkus/tika/deployment/TikaProcessorTest.java b/extensions/tika/deployment/src/test/java/io/quarkus/tika/deployment/TikaProcessorTest.java
index 133e9e08217e2..7be30fd56126c 100644
--- a/extensions/tika/deployment/src/test/java/io/quarkus/tika/deployment/TikaProcessorTest.java
+++ b/extensions/tika/deployment/src/test/java/io/quarkus/tika/deployment/TikaProcessorTest.java
@@ -78,13 +78,13 @@ public void testUnresolvableCustomAbbreviation() throws Exception {
@Test
public void testAllSupportedParserNames() throws Exception {
- assertEquals(69, getParserNames(null, null).size());
+ assertEquals(72, getParserNames(null, null).size());
}
@Test
public void testSupportedParserNamesWithTikaConfigPath() throws Exception {
Set names = getParserNames("tika-config.xml", "pdf");
- assertEquals(69, names.size());
+ assertEquals(72, names.size());
}
@Test
diff --git a/extensions/tika/runtime/pom.xml b/extensions/tika/runtime/pom.xml
index ca3b70f5d630c..8a2cd8d56be45 100644
--- a/extensions/tika/runtime/pom.xml
+++ b/extensions/tika/runtime/pom.xml
@@ -73,6 +73,11 @@
org.jboss.logging
commons-logging-jboss-logging
+
+ org.graalvm.nativeimage
+ svm
+ provided
+
diff --git a/extensions/tika/runtime/src/main/java/io/quarkus/tika/graalvm/CleanerNotSupportedSubstitution.java b/extensions/tika/runtime/src/main/java/io/quarkus/tika/graalvm/CleanerNotSupportedSubstitution.java
new file mode 100644
index 0000000000000..f882e8676806c
--- /dev/null
+++ b/extensions/tika/runtime/src/main/java/io/quarkus/tika/graalvm/CleanerNotSupportedSubstitution.java
@@ -0,0 +1,29 @@
+package io.quarkus.tika.graalvm;
+
+@com.oracle.svm.core.annotate.Substitute
+@com.oracle.svm.core.annotate.TargetClass(className = "org.apache.poi.poifs.nio.CleanerUtil")
+public final class CleanerNotSupportedSubstitution {
+
+ /**
+ * true
, if this platform supports unmapping mmapped files.
+ */
+ public static final boolean UNMAP_SUPPORTED = false;
+
+ /**
+ * if {@link #UNMAP_SUPPORTED} is {@code false}, this contains the reason
+ * why unmapping is not supported.
+ */
+ public static final String UNMAP_NOT_SUPPORTED_REASON = "Not supported on GraalVM native-image";
+
+ private static final org.apache.poi.poifs.nio.CleanerUtil.BufferCleaner CLEANER = null;
+
+ /**
+ * Reference to a BufferCleaner that does unmapping.
+ *
+ * @return {@code null} if not supported.
+ */
+ public static org.apache.poi.poifs.nio.CleanerUtil.BufferCleaner getCleaner() {
+ return CLEANER;
+ }
+
+}