|
19 | 19 | <developerConnection>scm:git:https://github.com/exist-db/exist.git</developerConnection>
|
20 | 20 | <url>scm:git:https://github.com/exist-db/exist.git</url>
|
21 | 21 | <tag>HEAD</tag>
|
22 |
| - </scm> |
| 22 | + </scm> |
| 23 | + |
| 24 | + <properties> |
| 25 | + <tika.version>1.22</tika.version> |
| 26 | + </properties> |
23 | 27 |
|
24 | 28 | <dependencies>
|
25 | 29 | <dependency>
|
|
36 | 40 | <dependency>
|
37 | 41 | <groupId>org.apache.tika</groupId>
|
38 | 42 | <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> |
40 | 57 | </dependency>
|
41 | 58 |
|
42 | 59 | <dependency>
|
43 | 60 | <groupId>xml-apis</groupId>
|
44 | 61 | <artifactId>xml-apis</artifactId>
|
45 | 62 | </dependency>
|
46 | 63 |
|
| 64 | + <dependency> |
| 65 | + <groupId>junit</groupId> |
| 66 | + <artifactId>junit</artifactId> |
| 67 | + <scope>test</scope> |
| 68 | + </dependency> |
| 69 | + |
47 | 70 | </dependencies>
|
| 71 | + |
| 72 | + <build> |
| 73 | + <testResources> |
| 74 | + <testResource> |
| 75 | + <directory>src/test/resources</directory> |
| 76 | + <filtering>false</filtering> |
| 77 | + </testResource> |
| 78 | + <testResource> |
| 79 | + <directory>src/test/resources-filtered</directory> |
| 80 | + <filtering>true</filtering> |
| 81 | + </testResource> |
| 82 | + </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> |
| 111 | + </build> |
48 | 112 |
|
49 | 113 | </project>
|
0 commit comments