Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2891 Upgrade to Tika 2.1.0 - remove commons-codec and commons-compress from exclusions to enable parsing of application/x-7z-compressed files

Sebastian Nagel621c8848d6a5
diff --git a/src/plugin/parse-tika/ivy.xml b/src/plugin/parse-tika/ivy.xml
index 0a92ceb20..388b69557 100644
--- a/src/plugin/parse-tika/ivy.xml
+++ b/src/plugin/parse-tika/ivy.xml
@@ -40,9 +40,7 @@
<!-- exclusions of dependencies provided in Nutch core (ivy/ivy.xml) -->
<exclude org="org.apache.tika" name="tika-core" />
<exclude org="org.apache.commons" name="commons-lang3" />
- <exclude org="commons-codec" name="commons-codec" />
<exclude org="org.apache.commons" name="commons-collections4" />
- <exclude org="org.apache.commons" name="commons-compress" />
<exclude org="commons-io" name="commons-io" />
<exclude org="commons-logging" name="commons-logging" />
<exclude org="org.slf4j" name="slf4j-api" />
@@ -50,6 +48,10 @@
are no instances in the child/plugin class loader -->
<exclude org="xerces" name="xercesImpl" />
<exclude org="xml-apis" name="xml-apis" />
+ <!-- common-codec and commons-compress must be included -->
+ <!--exclude org="org.apache.commons" name="commons-codec" /-->
+ <!--exclude org="commons-codec" name="commons-codec" /-->
+ <!--exclude org="org.apache.commons" name="commons-compress" /-->
</dependency>
</dependencies>
diff --git a/src/plugin/parse-tika/plugin.xml b/src/plugin/parse-tika/plugin.xml
index 4eae295a7..275406a7c 100644
--- a/src/plugin/parse-tika/plugin.xml
+++ b/src/plugin/parse-tika/plugin.xml
@@ -34,6 +34,8 @@
<library name="bcprov-jdk15on-1.69.jar"/>
<library name="bcutil-jdk15on-1.69.jar"/>
<library name="boilerpipe-1.1.0.jar"/>
+ <library name="commons-codec-1.15.jar"/>
+ <library name="commons-compress-1.21.jar"/>
<library name="commons-csv-1.9.0.jar"/>
<library name="commons-exec-1.3.jar"/>
<library name="commons-math3-3.6.1.jar"/>