Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-722 remove JAI libs

Sami Siren4a72e78ca6a0
diff --git a/CHANGES.txt b/CHANGES.txt
index 14eabe7cf..3d05ce8f5 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -380,6 +380,8 @@ Release 1.0 - 2009-03-10
143. NUTCH-715 - Subcollection plugin doesn't work with default
subcollections.xml file (Dmitry Lihachev via siren)
+
+144. NUTCH-722 - Nutch contains JAI jars that we cannot redistribute
Release 0.9 - 2007-04-02
diff --git a/README.txt b/README.txt
index 7a300c816..c2e1059e7 100644
--- a/README.txt
+++ b/README.txt
@@ -1,5 +1,19 @@
Apache Nutch README
+Important note: Due to licensing issues we cannot provide two libraries that
+are normally provided with PDFBox (jai_core.jar, jai_codec.jar), the parser
+library we use for parsing PDF files. If you encounter unexpected problems when
+working with PDF files please
+
+1. download the two missing libraries from:
+ http://pdfbox.cvs.sourceforge.net/viewvc/pdfbox/pdfbox/external/
+
+2. Put them to directory src/plugin/parse-pdf/lib
+3. follow the instructions in file src/plugin/parse-pdf/plugin.xml
+4. Rebuild nutch.
+
+
+
Interesting files include:
diff --git a/src/plugin/parse-pdf/lib/jai_codec.jar b/src/plugin/parse-pdf/lib/jai_codec.jar
deleted file mode 100644
index 056ecd3a7..000000000
Binary files a/src/plugin/parse-pdf/lib/jai_codec.jar and /dev/null differ
diff --git a/src/plugin/parse-pdf/lib/jai_core.jar b/src/plugin/parse-pdf/lib/jai_core.jar
deleted file mode 100644
index b29b8eed5..000000000
Binary files a/src/plugin/parse-pdf/lib/jai_core.jar and /dev/null differ
diff --git a/src/plugin/parse-pdf/plugin.xml b/src/plugin/parse-pdf/plugin.xml
index 7b11558ff..7801b1ef4 100644
--- a/src/plugin/parse-pdf/plugin.xml
+++ b/src/plugin/parse-pdf/plugin.xml
@@ -30,8 +30,12 @@
<library name="FontBox-0.2.0-dev.jar"/>
<library name="JempBox-0.2.0-dev.jar"/>
<library name="bcprov-jdk14-132.jar"/>
+ <!-- Uncomment the following two lines after you have downloaded the
+ libraries, see README.txt for more details.-->
+ <!--
<library name="jai_codec.jar"/>
<library name="jai_core.jar"/>
+ -->
</runtime>
<requires>