Skip to content

Commit

Permalink
JCR-2885: Move tika-parsers dependency to deployment packages
Browse files Browse the repository at this point in the history
Remove tika-parsers from jackrabbit-core (but still use it for testing)
and add it to jackrabbit-webapp and jackrabbit-jca.

Also exclude many of the lesser used or unneeded transitive dependencies.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1076635 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jukka committed Mar 3, 2011
1 parent b0b0bed commit 4981622
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 28 deletions.
35 changes: 16 additions & 19 deletions jackrabbit-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,30 +229,12 @@ org.apache.jackrabbit.test.api.ShareableNodeTest#testGetNodesByPattern
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<exclusions>
<exclusion>
<groupId>edu.ucar</groupId>
<artifactId>netcdf</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
<artifactId>tika-core</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
Expand All @@ -277,6 +259,21 @@ org.apache.jackrabbit.test.api.ShareableNodeTest#testGetNodesByPattern
<artifactId>jackrabbit-jcr-benchmark</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down
10 changes: 10 additions & 0 deletions jackrabbit-jca/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@
<artifactId>jackrabbit-core</artifactId>
<version>2.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
Expand Down
52 changes: 52 additions & 0 deletions jackrabbit-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,58 @@
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>${tika.version}</version>
<exclusions>
<!-- Exclude the NetCDF and the related commons-httpclient -->
<!-- libraries since the related NetCDF and HDF file -->
<!-- formats are not widely used beyond scientific data. -->
<exclusion>
<groupId>edu.ucar</groupId>
<artifactId>netcdf</artifactId>
</exclusion>
<exclusion>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
</exclusion>
<!-- Exclude the Apache MIME4J library as it's used for -->
<!-- parsing raw email messages and mbox files, which are -->
<!-- typically only needed by a file-based email system. -->
<exclusion>
<groupId>org.apache.james</groupId>
<artifactId>apache-mime4j</artifactId>
</exclusion>
<!-- Exclude the Commons Compress library as we don't want -->
<!-- to parse compressed archives like zips by default. -->
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
</exclusion>
<!-- Exclude the ASM library as it's only used for parsing -->
<!-- Java class files, for which there's typically no need -->
<!-- in a content repository. -->
<exclusion>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<!-- Exclude the extractor library for EXIF and other -->
<!-- image metadata as we normally don't want to parse -->
<!-- images for full text indexing. -->
<exclusion>
<groupId>com.drewnoakes</groupId>
<artifactId>metadata-extractor</artifactId>
</exclusion>
<!-- Exclude the Rome library as we normally don't want to -->
<!-- parse RSS and Atom feeds for full text indexing. -->
<exclusion>
<groupId>rome</groupId>
<artifactId>rome</artifactId>
</exclusion>
<!-- Exclude the Boilerpipe library as we don't use the -->
<!-- BoilerpipeContentHandler functionality from Tika. -->
<exclusion>
<groupId>de.l3s.boilerpipe</groupId>
<artifactId>boilerpipe</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
Expand Down
16 changes: 7 additions & 9 deletions jackrabbit-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,20 @@
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-core</artifactId>
<version>2.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>${slf4j.version}</version>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.apache.jackrabbit</groupId>
Expand Down Expand Up @@ -120,11 +123,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
Expand Down

0 comments on commit 4981622

Please sign in to comment.