updated pom to include lastest tika

This commit is contained in:
Lucio Lelii 2022-11-11 11:34:20 +01:00
parent 6af9fce70f
commit 6dd371070e
3 changed files with 14 additions and 15 deletions

23
pom.xml
View File

@ -26,10 +26,10 @@
<properties> <properties>
<webappDirectory>${project.basedir}/src/main/webapp/WEB-INF</webappDirectory> <webappDirectory>${project.basedir}/src/main/webapp/WEB-INF</webappDirectory>
<jackrabbit.version>2.20.2</jackrabbit.version> <jackrabbit.version>2.21.13</jackrabbit.version>
<jackson.version>2.8.11</jackson.version> <jackson.version>2.8.11</jackson.version>
<slf4j.version>1.7.4</slf4j.version> <slf4j.version>1.7.4</slf4j.version>
<tika.version>2.5.0</tika.version> <tika.version>2.6.0</tika.version>
<distroDirectory>${project.basedir}/distro</distroDirectory> <distroDirectory>${project.basedir}/distro</distroDirectory>
<description>REST web service for Jackrabbit</description> <description>REST web service for Jackrabbit</description>
@ -48,12 +48,6 @@
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>2.5.0</version>
<type>pom</type>
</dependency>
<dependency> <dependency>
<groupId>org.aspectj</groupId> <groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId> <artifactId>aspectjrt</artifactId>
@ -165,11 +159,11 @@
<artifactId>jackrabbit-core</artifactId> <artifactId>jackrabbit-core</artifactId>
<version>${jackrabbit.version}</version> <version>${jackrabbit.version}</version>
</dependency> </dependency>
<dependency> <!-- <dependency>
<groupId>org.apache.jackrabbit</groupId> <groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-jcr-server</artifactId> <artifactId>jackrabbit-jcr-server</artifactId>
<version>${jackrabbit.version}</version> <version>${jackrabbit.version}</version>
</dependency> </dependency> -->
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
@ -194,12 +188,17 @@
<dependency> <dependency>
<groupId>org.apache.tika</groupId> <groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId> <artifactId>tika-core</artifactId>
<version>2.5.0</version> <version>${tika.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers-standard-package</artifactId>
<version>${tika.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.tika</groupId> <groupId>org.apache.tika</groupId>
<artifactId>tika-parser-microsoft-module</artifactId> <artifactId>tika-parser-microsoft-module</artifactId>
<version>2.5.0</version> <version>${tika.version}</version>
</dependency> </dependency>
<!-- jersey & weld --> <!-- jersey & weld -->

View File

@ -37,8 +37,9 @@ public class RepositoryInitializerImpl implements RepositoryInitializer{
InitialContext context = new InitialContext(); InitialContext context = new InitialContext();
Context environment = (Context) context.lookup("java:comp/env"); Context environment = (Context) context.lookup("java:comp/env");
repository = (Repository) environment.lookup("jcr/repository"); repository = (Repository) environment.lookup("jcr/repository");
}catch (Exception e) { }catch (Throwable e) {
new RuntimeException("error initializing repository",e); log.error("error initializing repository", e);
throw new RuntimeException("error initializing repository",e);
} }
} }

View File

@ -38,7 +38,6 @@ public class StorageBackendHandler {
throw new RuntimeException("multiple storage backend with the same name"); throw new RuntimeException("multiple storage backend with the same name");
} }
storagebackendMap.put(connector.getName(), connector); storagebackendMap.put(connector.getName(), connector);
} }
else else
throw new RuntimeException("storage backend implementation not found"); throw new RuntimeException("storage backend implementation not found");