Skip to content

Commit 7481aa8

Browse files
committed
[bugfix] Add missing tika-parsers which are needed at runtime for the Content Extraction Module
Closes #3166
1 parent 2f6ba52 commit 7481aa8

File tree

1 file changed

+53
-2
lines changed
  • extensions/contentextraction

1 file changed

+53
-2
lines changed

extensions/contentextraction/pom.xml

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
<developerConnection>scm:git:https://github.com/exist-db/exist.git</developerConnection>
2020
<url>scm:git:https://github.com/exist-db/exist.git</url>
2121
<tag>HEAD</tag>
22-
</scm>
22+
</scm>
23+
24+
<properties>
25+
<tika.version>1.22</tika.version>
26+
</properties>
2327

2428
<dependencies>
2529
<dependency>
@@ -36,14 +40,33 @@
3640
<dependency>
3741
<groupId>org.apache.tika</groupId>
3842
<artifactId>tika-core</artifactId>
39-
<version>1.22</version>
43+
<version>${tika.version}</version>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>org.apache.tika</groupId>
48+
<artifactId>tika-parsers</artifactId>
49+
<version>${tika.version}</version>
50+
<scope>runtime</scope>
51+
<exclusions>
52+
<exclusion> <!-- conflicts with eXist-db's Xerces 2.12.0 with schema 1.1-->
53+
<groupId>xerces</groupId>
54+
<artifactId>xercesImpl</artifactId>
55+
</exclusion>
56+
</exclusions>
4057
</dependency>
4158

4259
<dependency>
4360
<groupId>xml-apis</groupId>
4461
<artifactId>xml-apis</artifactId>
4562
</dependency>
4663

64+
<dependency>
65+
<groupId>junit</groupId>
66+
<artifactId>junit</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
4770
</dependencies>
4871

4972
<build>
@@ -57,6 +80,34 @@
5780
<filtering>true</filtering>
5881
</testResource>
5982
</testResources>
83+
<plugins>
84+
<plugin>
85+
<groupId>org.owasp</groupId>
86+
<artifactId>dependency-check-maven</artifactId>
87+
<configuration>
88+
<!-- clashes with com.sun:tools from transient dependency of tika-parsers, see https://github.com/jeremylong/DependencyCheck/issues/1914 -->
89+
<skipSystemScope>true</skipSystemScope>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-dependency-plugin</artifactId>
95+
<executions>
96+
<execution>
97+
<id>analyze</id>
98+
<goals>
99+
<goal>analyze-only</goal>
100+
</goals>
101+
<configuration>
102+
<failOnWarning>true</failOnWarning>
103+
<ignoredUnusedDeclaredDependencies>
104+
<ignoredUnusedDeclaredDependency>org.apache.tika:tika-parsers</ignoredUnusedDeclaredDependency>
105+
</ignoredUnusedDeclaredDependencies>
106+
</configuration>
107+
</execution>
108+
</executions>
109+
</plugin>
110+
</plugins>
60111
</build>
61112

62113
</project>

0 commit comments

Comments
 (0)