Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tika Wiki" for change notification.
The "IntegratingTikaWithExtractingRequestHandler" page has been changed by JinghaoCui: https://wiki.apache.org/tika/IntegratingTikaWithExtractingRequestHandler?action=diff&rev1=1&rev2=2 = Integrating Tika With ExtractingRequestHandler = '''0. Because the online apache repositories do not have the 1.8-SNAPSHOT for now, we have to use local maven repository. ''' - 1. Checkout tike-trunk: + '''1. Checkout tike-trunk:''' + {{{ - $ svn co https://svn.apache.org/repos/asf/tika/trunk/ tika-trunk + $ svn co https://svn.apache.org/repos/asf/tika/trunk/ tika-trunk + }}} + '''2. Build Tika''' - 2. Build Tika + {{{ + $ cd tika-trunk - $ cd tika-trunk + $ mvn install + }}} + '''3. Download tika-parsers dependencies:''' - $ mvn install + {{{ + $ cd tika-parsers - 4. Download tika-parsers dependencies: + $ mvn dependency:copy-dependencies + }}} + '''4. Checkout lucene-solr-4-10''' - $ cd tika-parsers + {{{ + $ svn checkout http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10 lucene_solr_4_10 + }}} + '''5. Modified the lucene_solr_4_10/lucene/ivy-setting.xml by uncommenting line 45-52:''' + {{{ - $ mvn dependency:copy-dependencies - - 5. Checkout lucene-solr-4-10 - - $ svn checkout http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10 lucene_solr_4_10 - - 6. Modified the lucene_solr_4_10/lucene/ivy-setting.xml by uncommenting line 45-52: - <filesystem name="local-maven-2" m2compatible="true" local="true"> <artifact @@ -35, +40 @@ pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision].pom" /> - </filesystem> + </filesystem> + }}} + '''6. Replace the lucene_solr_4_10/solr/contrib/extraction/ivy.xml to the following ivy.xml:''' + {{{ - 7. Replace the lucene_solr_4_10/solr/contrib/extraction/ivy.xml to the following ivy.xml: - <!-- Licensed to the Apache Software Foundation (ASF) under one @@ -93, +99 @@ <dependency org="org.apache.tika" name="tika-xmp" rev="1.8-SNAPSHOT" conf="compile"/> - - <!-- Tika dependencies - see http://tika.apache.org/1.3/gettingstarted.html#Using_Tika_as_a_Maven_dependency --> <!-- When upgrading Tika, upgrade dependencies versions and add any new ones @@ -121, +125 @@ <dependency org="org.bouncycastle" name="bcmail-jdk15" rev="1.45" conf="compile"/> - <dependency org="org.bouncycastle" name="bcprov-jdk15" rev="1.45" conf="compile"/> + <dependency org="org.bouncycastle" name="bcprov-jdk15" rev="1.45" conf="compile"/> <dependency org="org.apache.poi" name="poi" rev="3.11" conf="compile"/> @@ -170, +174 @@ </dependencies> </ivy-module> + }}} + '''7. Compile solr''' - 8. Compile solr + {{{ + Change the working directory to lucene_solr_4_10/solr/ - Change the working directory to lucene_solr_4_10/solr/ + $ ant compile + }}} + '''8. Generate new sha1 files for the jars''' - $ ant compile + {{{ + $ ant jar-checksums + }}} + '''9. Done. Enjoy.''' - 9. Generate new sha1 files for the jars - - $ ant jar-checksums - - 10. Done. Enjoy. -
