Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Complete plugin build configuration (NUTCH-2430) - add missing plugin folders to Eclipse target (includes NUTCH-2135) - include all plugins to API docs / javadoc - remove non-existent source folder(s) from build files - remove non-functional plugin parse-replace (cf. NUTCH-2058 / index-replace) - sort plugins in build files alphabetically

Sebastian Nagel64fc5761ee1f
diff --git a/build.xml b/build.xml
index 2d33f96ac..394d4e4a5 100644
--- a/build.xml
+++ b/build.xml
@@ -158,7 +158,7 @@
</condition>
</fail>
- <!-- build the javadoc artifact -->
+ <!-- build the javadoc artifact -->
<javadoc
destdir="${release.dir}/javadoc"
overview="${src.dir}/overview.html"
@@ -178,24 +178,25 @@
<packageset dir="${plugins.dir}/headings/src/java"/>
<packageset dir="${plugins.dir}/index-anchor/src/java"/>
<packageset dir="${plugins.dir}/index-basic/src/java"/>
+ <packageset dir="${plugins.dir}/index-geoip/src/java"/>
+ <packageset dir="${plugins.dir}/index-links/src/java"/>
<packageset dir="${plugins.dir}/index-metadata/src/java"/>
<packageset dir="${plugins.dir}/index-more/src/java"/>
- <packageset dir="${plugins.dir}/index-geoip/src/java"/>
<packageset dir="${plugins.dir}/index-replace/src/java"/>
<packageset dir="${plugins.dir}/index-static/src/java"/>
- <packageset dir="${plugins.dir}/index-links/src/java"/>
- <packageset dir="${plugins.dir}/mimetype-filter/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-cloudsearch/src/java/" />
<packageset dir="${plugins.dir}/indexer-dummy/src/java"/>
- <packageset dir="${plugins.dir}/indexer-elastic/src/java/" />
<packageset dir="${plugins.dir}/indexer-elastic-rest/src/java/"/>
- <packageset dir="${plugins.dir}/indexer-solr/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-elastic/src/java/" />
<packageset dir="${plugins.dir}/indexer-rabbit/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-solr/src/java"/>
<packageset dir="${plugins.dir}/language-identifier/src/java"/>
<packageset dir="${plugins.dir}/lib-htmlunit/src/java"/>
<packageset dir="${plugins.dir}/lib-http/src/java"/>
- <packageset dir="${plugins.dir}/lib-selenium/src/java"/>
<packageset dir="${plugins.dir}/lib-regex-filter/src/java"/>
+ <packageset dir="${plugins.dir}/lib-selenium/src/java"/>
<packageset dir="${plugins.dir}/microformats-reltag/src/java"/>
+ <packageset dir="${plugins.dir}/mimetype-filter/src/java"/>
<packageset dir="${plugins.dir}/parse-ext/src/java"/>
<packageset dir="${plugins.dir}/parse-html/src/java"/>
<packageset dir="${plugins.dir}/parse-js/src/java"/>
@@ -203,6 +204,7 @@
<packageset dir="${plugins.dir}/parse-swf/src/java"/>
<packageset dir="${plugins.dir}/parse-tika/src/java"/>
<packageset dir="${plugins.dir}/parse-zip/src/java"/>
+ <packageset dir="${plugins.dir}/parsefilter-naivebayes/src/java"/>
<packageset dir="${plugins.dir}/parsefilter-regex/src/java"/>
<packageset dir="${plugins.dir}/protocol-file/src/java"/>
<packageset dir="${plugins.dir}/protocol-ftp/src/java"/>
@@ -213,21 +215,21 @@
<packageset dir="${plugins.dir}/protocol-selenium/src/java"/>
<packageset dir="${plugins.dir}/publish-rabbitmq/src/java"/>
<packageset dir="${plugins.dir}/scoring-depth/src/java"/>
- <packageset dir="${plugins.dir}/scoring-similarity/src/java"/>
<packageset dir="${plugins.dir}/scoring-link/src/java"/>
<packageset dir="${plugins.dir}/scoring-opic/src/java"/>
+ <packageset dir="${plugins.dir}/scoring-similarity/src/java"/>
<packageset dir="${plugins.dir}/subcollection/src/java"/>
<packageset dir="${plugins.dir}/tld/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-automaton/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-domain/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-domainblacklist/src/java"/>
+ <packageset dir="${plugins.dir}/urlfilter-ignoreexempt/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-prefix/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-regex/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-suffix/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-validator/src/java"/>
- <packageset dir="${plugins.dir}/urlfilter-ignoreexempt/src/java"/>
- <packageset dir="${plugins.dir}/parsefilter-naivebayes/src/java"/>
<packageset dir="${plugins.dir}/urlmeta/src/java"/>
+ <packageset dir="${plugins.dir}/urlnormalizer-ajax/src/java"/>
<packageset dir="${plugins.dir}/urlnormalizer-basic/src/java"/>
<packageset dir="${plugins.dir}/urlnormalizer-host/src/java"/>
<packageset dir="${plugins.dir}/urlnormalizer-pass/src/java"/>
@@ -257,6 +259,7 @@
<group title="Scoring Plugins" packages="${plugins.scoring}"/>
<group title="Parse Plugins" packages="${plugins.parse}"/>
<group title="Parse Filter Plugins" packages="${plugins.parsefilter}"/>
+ <group title="Publisher Plugins" packages="${plugins.publisher}"/>
<group title="Indexing Filter Plugins" packages="${plugins.index}"/>
<group title="Indexer Plugins" packages="${plugins.indexer}"/>
<group title="Misc. Plugins" packages="${plugins.misc}"/>
@@ -626,54 +629,57 @@
<packageset dir="${plugins.dir}/index-anchor/src/java"/>
<packageset dir="${plugins.dir}/index-basic/src/java"/>
<packageset dir="${plugins.dir}/index-geoip/src/java"/>
+ <packageset dir="${plugins.dir}/index-links/src/java"/>
<packageset dir="${plugins.dir}/index-metadata/src/java"/>
<packageset dir="${plugins.dir}/index-more/src/java"/>
<packageset dir="${plugins.dir}/index-replace/src/java"/>
<packageset dir="${plugins.dir}/index-static/src/java"/>
- <packageset dir="${plugins.dir}/index-links/src/java"/>
- <packageset dir="${plugins.dir}/mimetype-filter/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-cloudsearch/src/java/" />
<packageset dir="${plugins.dir}/indexer-dummy/src/java"/>
- <packageset dir="${plugins.dir}/indexer-elastic/src/java/" />
<packageset dir="${plugins.dir}/indexer-elastic-rest/src/java/"/>
- <packageset dir="${plugins.dir}/indexer-solr/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-elastic/src/java/" />
<packageset dir="${plugins.dir}/indexer-rabbit/src/java"/>
+ <packageset dir="${plugins.dir}/indexer-solr/src/java"/>
<packageset dir="${plugins.dir}/language-identifier/src/java"/>
<packageset dir="${plugins.dir}/lib-htmlunit/src/java"/>
<packageset dir="${plugins.dir}/lib-http/src/java"/>
- <packageset dir="${plugins.dir}/lib-selenium/src/java"/>
<packageset dir="${plugins.dir}/lib-regex-filter/src/java"/>
+ <packageset dir="${plugins.dir}/lib-selenium/src/java"/>
<packageset dir="${plugins.dir}/microformats-reltag/src/java"/>
+ <packageset dir="${plugins.dir}/mimetype-filter/src/java"/>
<packageset dir="${plugins.dir}/parse-ext/src/java"/>
<packageset dir="${plugins.dir}/parse-html/src/java"/>
<packageset dir="${plugins.dir}/parse-js/src/java"/>
<packageset dir="${plugins.dir}/parse-metatags/src/java"/>
<packageset dir="${plugins.dir}/parse-swf/src/java"/>
<packageset dir="${plugins.dir}/parse-tika/src/java"/>
- <packageset dir="${plugins.dir}/parsefilter-regex/src/java"/>
<packageset dir="${plugins.dir}/parse-zip/src/java"/>
+ <packageset dir="${plugins.dir}/parsefilter-naivebayes/src/java"/>
+ <packageset dir="${plugins.dir}/parsefilter-regex/src/java"/>
<packageset dir="${plugins.dir}/protocol-file/src/java"/>
<packageset dir="${plugins.dir}/protocol-ftp/src/java"/>
<packageset dir="${plugins.dir}/protocol-htmlunit/src/java"/>
<packageset dir="${plugins.dir}/protocol-http/src/java"/>
<packageset dir="${plugins.dir}/protocol-httpclient/src/java"/>
+ <packageset dir="${plugins.dir}/protocol-interactiveselenium/src/java"/>
<packageset dir="${plugins.dir}/protocol-selenium/src/java"/>
<packageset dir="${plugins.dir}/publish-rabbitmq/src/java"/>
<packageset dir="${plugins.dir}/scoring-depth/src/java"/>
- <packageset dir="${plugins.dir}/scoring-similarity/src/java"/>
<packageset dir="${plugins.dir}/scoring-link/src/java"/>
<packageset dir="${plugins.dir}/scoring-opic/src/java"/>
+ <packageset dir="${plugins.dir}/scoring-similarity/src/java"/>
<packageset dir="${plugins.dir}/subcollection/src/java"/>
<packageset dir="${plugins.dir}/tld/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-automaton/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-domain/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-domainblacklist/src/java"/>
+ <packageset dir="${plugins.dir}/urlfilter-ignoreexempt/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-prefix/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-regex/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-suffix/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-validator/src/java"/>
- <packageset dir="${plugins.dir}/urlfilter-ignoreexempt/src/java"/>
- <packageset dir="${plugins.dir}/parsefilter-naivebayes/src/java"/>
<packageset dir="${plugins.dir}/urlmeta/src/java"/>
+ <packageset dir="${plugins.dir}/urlnormalizer-ajax/src/java"/>
<packageset dir="${plugins.dir}/urlnormalizer-basic/src/java"/>
<packageset dir="${plugins.dir}/urlnormalizer-host/src/java"/>
<packageset dir="${plugins.dir}/urlnormalizer-pass/src/java"/>
@@ -703,6 +709,7 @@
<group title="Scoring Plugins" packages="${plugins.scoring}"/>
<group title="Parse Plugins" packages="${plugins.parse}"/>
<group title="Parse Filter Plugins" packages="${plugins.parsefilter}"/>
+ <group title="Publisher Plugins" packages="${plugins.publisher}"/>
<group title="Indexing Filter Plugins" packages="${plugins.index}"/>
<group title="Indexer Plugins" packages="${plugins.indexer}"/>
<group title="Misc. Plugins" packages="${plugins.misc}"/>
@@ -1033,14 +1040,6 @@
<source path="${plugins.dir}/index-geoip/src/java/" />
<source path="${plugins.dir}/index-links/src/java/" />
<source path="${plugins.dir}/index-links/src/test/" />
- <source path="${plugins.dir}/mimetype-filter/src/java/" />
- <source path="${plugins.dir}/mimetype-filter/src/test/" />
- <source path="${plugins.dir}/indexer-dummy/src/java/" />
- <source path="${plugins.dir}/indexer-solr/src/java/" />
- <source path="${plugins.dir}/indexer-rabbit/src/java/" />
- <source path="${plugins.dir}/indexer-elastic/src/java/" />
- <source path="${plugins.dir}/indexer-elastic/src/test/" />
- <source path="${plugins.dir}/indexer-elastic-rest/src/java/"/>
<source path="${plugins.dir}/index-metadata/src/java/" />
<source path="${plugins.dir}/index-more/src/java/" />
<source path="${plugins.dir}/index-more/src/test/" />
@@ -1048,15 +1047,24 @@
<source path="${plugins.dir}/index-replace/src/test/" />
<source path="${plugins.dir}/index-static/src/java/" />
<source path="${plugins.dir}/index-static/src/test/" />
+ <source path="${plugins.dir}/indexer-cloudsearch/src/java/" />
+ <source path="${plugins.dir}/indexer-dummy/src/java/" />
+ <source path="${plugins.dir}/indexer-elastic-rest/src/java/"/>
+ <source path="${plugins.dir}/indexer-elastic/src/java/" />
+ <source path="${plugins.dir}/indexer-elastic/src/test/" />
+ <source path="${plugins.dir}/indexer-rabbit/src/java/" />
+ <source path="${plugins.dir}/indexer-solr/src/java/" />
<source path="${plugins.dir}/language-identifier/src/java/" />
<source path="${plugins.dir}/language-identifier/src/test/" />
<source path="${plugins.dir}/lib-htmlunit/src/java/" />
<source path="${plugins.dir}/lib-http/src/java/" />
<source path="${plugins.dir}/lib-http/src/test/" />
- <source path="${plugins.dir}/lib-selenium/src/java/" />
<source path="${plugins.dir}/lib-regex-filter/src/java/" />
<source path="${plugins.dir}/lib-regex-filter/src/test/" />
+ <source path="${plugins.dir}/lib-selenium/src/java/" />
<source path="${plugins.dir}/microformats-reltag/src/java/" />
+ <source path="${plugins.dir}/mimetype-filter/src/java/" />
+ <source path="${plugins.dir}/mimetype-filter/src/test/" />
<source path="${plugins.dir}/parse-ext/src/java/" />
<source path="${plugins.dir}/parse-ext/src/test/" />
<source path="${plugins.dir}/parse-html/src/java/" />
@@ -1064,48 +1072,56 @@
<source path="${plugins.dir}/parse-js/src/java/" />
<source path="${plugins.dir}/parse-metatags/src/java/" />
<source path="${plugins.dir}/parse-metatags/src/test/" />
+ <source path="${plugins.dir}/parse-replace/src/java/" />
+ <source path="${plugins.dir}/parse-replace/src/test/" />
<source path="${plugins.dir}/parse-swf/src/java/" />
<source path="${plugins.dir}/parse-swf/src/test/" />
<source path="${plugins.dir}/parse-tika/src/java/" />
<source path="${plugins.dir}/parse-tika/src/test/" />
<source path="${plugins.dir}/parse-zip/src/java/" />
<source path="${plugins.dir}/parse-zip/src/test/" />
+ <source path="${plugins.dir}/parsefilter-naivebayes/src/java/" />
<source path="${plugins.dir}/parsefilter-regex/src/java/" />
<source path="${plugins.dir}/parsefilter-regex/src/test/" />
<source path="${plugins.dir}/protocol-file/src/java/" />
<source path="${plugins.dir}/protocol-file/src/test/" />
<source path="${plugins.dir}/protocol-ftp/src/java/" />
<source path="${plugins.dir}/protocol-htmlunit/src/java"/>
- <source path="${plugins.dir}/protocol-httpclient/src/java/" />
- <source path="${plugins.dir}/protocol-httpclient/src/test/" />
+ <source path="${plugins.dir}/protocol-htmlunit/src/java/" />
<source path="${plugins.dir}/protocol-http/src/java/" />
<source path="${plugins.dir}/protocol-http/src/test/" />
+ <source path="${plugins.dir}/protocol-httpclient/src/java/" />
+ <source path="${plugins.dir}/protocol-httpclient/src/test/" />
+ <source path="${plugins.dir}/protocol-interactiveselenium/src/java/" />
<source path="${plugins.dir}/protocol-selenium/src/java"/>
+ <source path="${plugins.dir}/protocol-selenium/src/java/" />
<source path="${plugins.dir}/publish-rabbitmq/src/java"/>
+ <source path="${plugins.dir}/publish-rabbitmq/src/java/" />
<source path="${plugins.dir}/scoring-depth/src/java/" />
- <source path="${plugins.dir}/scoring-similarity/src/java/" />
<source path="${plugins.dir}/scoring-link/src/java/" />
<source path="${plugins.dir}/scoring-opic/src/java/" />
+ <source path="${plugins.dir}/scoring-similarity/src/java/" />
<source path="${plugins.dir}/subcollection/src/java/" />
<source path="${plugins.dir}/subcollection/src/test/" />
<source path="${plugins.dir}/tld/src/java/" />
<source path="${plugins.dir}/urlfilter-automaton/src/java/" />
<source path="${plugins.dir}/urlfilter-automaton/src/test/" />
- <source path="${plugins.dir}/urlfilter-domainblacklist/src/java/" />
- <source path="${plugins.dir}/urlfilter-domainblacklist/src/test/" />
<source path="${plugins.dir}/urlfilter-domain/src/java/" />
<source path="${plugins.dir}/urlfilter-domain/src/test/" />
+ <source path="${plugins.dir}/urlfilter-domainblacklist/src/java/" />
+ <source path="${plugins.dir}/urlfilter-domainblacklist/src/test/" />
+ <source path="${plugins.dir}/urlfilter-ignoreexempt/src/java/" />
<source path="${plugins.dir}/urlfilter-prefix/src/java/" />
+ <source path="${plugins.dir}/urlfilter-prefix/src/test/" />
<source path="${plugins.dir}/urlfilter-regex/src/java/" />
<source path="${plugins.dir}/urlfilter-regex/src/test/" />
<source path="${plugins.dir}/urlfilter-suffix/src/java/" />
<source path="${plugins.dir}/urlfilter-suffix/src/test/" />
<source path="${plugins.dir}/urlfilter-validator/src/java/" />
<source path="${plugins.dir}/urlfilter-validator/src/test/" />
- <source path="${plugins.dir}/urlfilter-ignoreexempt/src/java/" />
- <source path="${plugins.dir}/urlfilter-ignoreexempt/src/test/" />
- <source path="${plugins.dir}/parsefilter-naivebayes/src/java/" />
<source path="${plugins.dir}/urlmeta/src/java/" />
+ <source path="${plugins.dir}/urlnormalizer-ajax/src/java/" />
+ <source path="${plugins.dir}/urlnormalizer-ajax/src/test/" />
<source path="${plugins.dir}/urlnormalizer-basic/src/java/" />
<source path="${plugins.dir}/urlnormalizer-basic/src/test/" />
<source path="${plugins.dir}/urlnormalizer-host/src/java/" />
diff --git a/default.properties b/default.properties
index 36e4027b8..c1e310fd2 100644
--- a/default.properties
+++ b/default.properties
@@ -92,6 +92,7 @@ plugins.protocol=\
org.apache.nutch.protocol.ftp*:\
org.apache.nutch.protocol.http*:\
org.apache.nutch.protocol.httpclient*:\
+ org.apache.nutch.protocol.interactiveselenium*:\
org.apache.nutch.protocol.selenium*:\
org.apache.nutch.protocol.htmlunit*:\
@@ -102,6 +103,7 @@ plugins.urlfilter=\
org.apache.nutch.urlfilter.automaton*:\
org.apache.nutch.urlfilter.domain*:\
org.apache.nutch.urlfilter.domainblacklist*:\
+ org.apache.nutch.urlfilter.ignoreexempt*:\
org.apache.nutch.urlfilter.prefix*:\
org.apache.nutch.urlfilter.regex*:\
org.apache.nutch.urlfilter.suffix*:\
@@ -111,12 +113,14 @@ plugins.urlfilter=\
# URL Normalizer Plugins
#
plugins.urlnormalizer=\
+ org.apache.nutch.net.urlnormalizer.ajax*:\
org.apache.nutch.net.urlnormalizer.basic*:\
org.apache.nutch.net.urlnormalizer.host*:\
org.apache.nutch.net.urlnormalizer.pass*:\
org.apache.nutch.net.urlnormalizer.protocol*:\
org.apache.nutch.net.urlnormalizer.querystring*:\
- org.apache.nutch.net.urlnormalizer.regex*
+ org.apache.nutch.net.urlnormalizer.regex*:\
+ org.apache.nutch.net.urlnormalizer.slash*
#
# Scoring Plugins
@@ -137,6 +141,7 @@ plugins.parse=\
org.apache.nutch.parse.feed*:\
org.apache.nutch.parse.html*:\
org.apache.nutch.parse.js:\
+ org.apache.nutch.parse.replace*:\
org.apache.nutch.parse.swf*:\
org.apache.nutch.parse.tika:\
org.apache.nutch.parse.zip
@@ -150,6 +155,12 @@ plugins.parsefilter=\
org.apache.nutch.parsefilter.regex*:\
org.apache.nutch.parse.metatags*
+#
+# Publisher Plugins
+#
+plugins.publisher=\
+ org.apache.nutch.publisher.rabbitmq*
+
#
# Indexing Filter Plugins
#
@@ -159,9 +170,11 @@ plugins.index=\
org.apache.nutch.indexer.feed*:\
org.apache.nutch.indexer.geoip*:\
org.apache.nutch.indexer.filter*:\
+ org.apache.nutch.indexer.links*:\
org.apache.nutch.indexer.metadata*:\
org.apache.nutch.indexer.more*:\
- org.apache.nutch.indexer.static*:\
+ org.apache.nutch.indexer.replace*:\
+ org.apache.nutch.indexer.staticfield*:\
org.apache.nutch.indexer.subcollection*:\
org.apache.nutch.indexer.tld*:\
org.apache.nutch.indexer.urlmeta*
@@ -170,8 +183,11 @@ plugins.index=\
# Indexing Backend Plugins
#
plugins.indexer=\
+ org.apache.nutch.indexwriter.cloudsearch*:\
org.apache.nutch.indexwriter.dummy*:\
org.apache.nutch.indexwriter.elastic*:\
+ org.apache.nutch.indexwriter.elasticrest*:\
+ org.apache.nutch.indexwriter.rabbit*:\
org.apache.nutch.indexwriter.solr*
#
diff --git a/src/plugin/build.xml b/src/plugin/build.xml
index 9074654de..769debcda 100755
--- a/src/plugin/build.xml
+++ b/src/plugin/build.xml
@@ -26,112 +26,116 @@
<!-- Build & deploy all the plugin jars. -->
<!-- ====================================================== -->
<target name="deploy">
- <ant dir="creativecommons" target="deploy"/>
- <ant dir="feed" target="deploy"/>
- <ant dir="headings" target="deploy"/>
- <ant dir="index-basic" target="deploy"/>
- <ant dir="index-anchor" target="deploy"/>
- <ant dir="index-geoip" target="deploy"/>
- <ant dir="index-more" target="deploy"/>
- <ant dir="index-replace" target="deploy"/>
- <ant dir="index-static" target="deploy"/>
- <ant dir="index-metadata" target="deploy"/>
- <ant dir="index-links" target="deploy"/>
- <ant dir="mimetype-filter" target="deploy"/>
- <ant dir="indexer-cloudsearch" target="deploy"/>
- <ant dir="indexer-dummy" target="deploy"/>
- <ant dir="indexer-elastic" target="deploy"/>
- <ant dir="indexer-elastic-rest" target="deploy"/>
- <ant dir="indexer-solr" target="deploy"/>
- <ant dir="indexer-rabbit" target="deploy"/>
- <ant dir="language-identifier" target="deploy"/>
- <ant dir="lib-http" target="deploy"/>
- <ant dir="lib-nekohtml" target="deploy"/>
- <ant dir="lib-regex-filter" target="deploy"/>
- <ant dir="lib-xml" target="deploy"/>
- <ant dir="microformats-reltag" target="deploy"/>
- <ant dir="nutch-extensionpoints" target="deploy"/>
- <ant dir="protocol-file" target="deploy"/>
- <ant dir="protocol-ftp" target="deploy"/>
- <ant dir="protocol-http" target="deploy"/>
- <ant dir="protocol-httpclient" target="deploy"/>
- <ant dir="lib-htmlunit" target="deploy"/>
- <ant dir="protocol-htmlunit" target="deploy" />
- <ant dir="lib-selenium" target="deploy"/>
- <ant dir="protocol-selenium" target="deploy" />
- <ant dir="protocol-interactiveselenium" target="deploy" />
- <ant dir="parse-ext" target="deploy"/>
- <ant dir="parse-js" target="deploy"/>
- <ant dir="parse-html" target="deploy"/>
- <ant dir="parse-metatags" target="deploy"/>
- <ant dir="parse-swf" target="deploy"/>
- <ant dir="parse-tika" target="deploy"/>
- <ant dir="parse-zip" target="deploy"/>
- <ant dir="publish-rabbitmq" target="deploy"/>
- <ant dir="scoring-depth" target="deploy"/>
- <ant dir="scoring-opic" target="deploy"/>
- <ant dir="scoring-link" target="deploy"/>
- <ant dir="scoring-similarity" target="deploy"/>
- <ant dir="subcollection" target="deploy"/>
- <ant dir="tld" target="deploy"/>
- <ant dir="urlfilter-automaton" target="deploy"/>
- <ant dir="urlfilter-domain" target="deploy" />
- <ant dir="urlfilter-domainblacklist" target="deploy" />
- <ant dir="urlfilter-prefix" target="deploy"/>
- <ant dir="urlfilter-regex" target="deploy"/>
- <ant dir="urlfilter-suffix" target="deploy"/>
- <ant dir="urlfilter-validator" target="deploy"/>
- <ant dir="urlfilter-ignoreexempt" target="deploy"/>
- <ant dir="parsefilter-naivebayes" target="deploy"/>
- <ant dir="parsefilter-regex" target="deploy"/>
- <ant dir="urlmeta" target="deploy"/>
- <ant dir="urlnormalizer-ajax" target="deploy"/>
- <ant dir="urlnormalizer-basic" target="deploy"/>
- <ant dir="urlnormalizer-host" target="deploy"/>
- <ant dir="urlnormalizer-pass" target="deploy"/>
- <ant dir="urlnormalizer-protocol" target="deploy"/>
- <ant dir="urlnormalizer-querystring" target="deploy"/>
- <ant dir="urlnormalizer-regex" target="deploy"/>
- <ant dir="urlnormalizer-slash" target="deploy"/>
+ <!-- first build libs, other plugins depend on them -->
+ <ant dir="lib-htmlunit" target="deploy"/>
+ <ant dir="lib-http" target="deploy"/>
+ <ant dir="lib-nekohtml" target="deploy"/>
+ <ant dir="lib-regex-filter" target="deploy"/>
+ <ant dir="lib-selenium" target="deploy"/>
+ <ant dir="lib-xml" target="deploy"/>
+ <!-- real plugins -->
+ <ant dir="creativecommons" target="deploy"/>
+ <ant dir="feed" target="deploy"/>
+ <ant dir="headings" target="deploy"/>
+ <ant dir="index-anchor" target="deploy"/>
+ <ant dir="index-basic" target="deploy"/>
+ <ant dir="index-geoip" target="deploy"/>
+ <ant dir="index-links" target="deploy"/>
+ <ant dir="index-metadata" target="deploy"/>
+ <ant dir="index-more" target="deploy"/>
+ <ant dir="index-replace" target="deploy"/>
+ <ant dir="index-static" target="deploy"/>
+ <ant dir="indexer-cloudsearch" target="deploy"/>
+ <ant dir="indexer-dummy" target="deploy"/>
+ <ant dir="indexer-elastic" target="deploy"/>
+ <ant dir="indexer-elastic-rest" target="deploy"/>
+ <ant dir="indexer-rabbit" target="deploy"/>
+ <ant dir="indexer-solr" target="deploy"/>
+ <ant dir="language-identifier" target="deploy"/>
+ <ant dir="microformats-reltag" target="deploy"/>
+ <ant dir="mimetype-filter" target="deploy"/>
+ <ant dir="nutch-extensionpoints" target="deploy"/>
+ <ant dir="parse-ext" target="deploy"/>
+ <ant dir="parse-html" target="deploy"/>
+ <ant dir="parse-js" target="deploy"/>
+ <ant dir="parse-metatags" target="deploy"/>
+ <ant dir="parse-swf" target="deploy"/>
+ <ant dir="parse-tika" target="deploy"/>
+ <ant dir="parse-zip" target="deploy"/>
+ <ant dir="parsefilter-naivebayes" target="deploy"/>
+ <ant dir="parsefilter-regex" target="deploy"/>
+ <ant dir="protocol-file" target="deploy"/>
+ <ant dir="protocol-ftp" target="deploy"/>
+ <ant dir="protocol-htmlunit" target="deploy" />
+ <ant dir="protocol-http" target="deploy"/>
+ <ant dir="protocol-httpclient" target="deploy"/>
+ <ant dir="protocol-interactiveselenium" target="deploy" />
+ <ant dir="protocol-selenium" target="deploy" />
+ <ant dir="publish-rabbitmq" target="deploy"/>
+ <ant dir="scoring-depth" target="deploy"/>
+ <ant dir="scoring-link" target="deploy"/>
+ <ant dir="scoring-opic" target="deploy"/>
+ <ant dir="scoring-similarity" target="deploy"/>
+ <ant dir="subcollection" target="deploy"/>
+ <ant dir="tld" target="deploy"/>
+ <ant dir="urlfilter-automaton" target="deploy"/>
+ <ant dir="urlfilter-domain" target="deploy" />
+ <ant dir="urlfilter-domainblacklist" target="deploy" />
+ <ant dir="urlfilter-prefix" target="deploy"/>
+ <ant dir="urlfilter-regex" target="deploy"/>
+ <ant dir="urlfilter-suffix" target="deploy"/>
+ <ant dir="urlfilter-validator" target="deploy"/>
+ <!-- urlfilter-ignoreexempt depends on urlfilter-regex, must build after -->
+ <ant dir="urlfilter-ignoreexempt" target="deploy"/>
+ <ant dir="urlmeta" target="deploy"/>
+ <ant dir="urlnormalizer-ajax" target="deploy"/>
+ <ant dir="urlnormalizer-basic" target="deploy"/>
+ <ant dir="urlnormalizer-host" target="deploy"/>
+ <ant dir="urlnormalizer-pass" target="deploy"/>
+ <ant dir="urlnormalizer-protocol" target="deploy"/>
+ <ant dir="urlnormalizer-querystring" target="deploy"/>
+ <ant dir="urlnormalizer-regex" target="deploy"/>
+ <ant dir="urlnormalizer-slash" target="deploy"/>
</target>
-
+
<!-- ====================================================== -->
<!-- Test all of the plugins. -->
<!-- ====================================================== -->
<target name="test">
<parallel threadCount="2">
<ant dir="creativecommons" target="test"/>
- <ant dir="index-basic" target="test"/>
+ <ant dir="feed" target="test"/>
<ant dir="index-anchor" target="test"/>
- <ant dir="index-geoip" target="test"/>
+ <ant dir="index-basic" target="test"/>
+ <!--ant dir="index-geoip" target="test"/-->
+ <ant dir="index-links" target="test"/>
<ant dir="index-more" target="test"/>
- <ant dir="index-static" target="test"/>
<ant dir="index-replace" target="test"/>
- <ant dir="index-links" target="test"/>
- <ant dir="mimetype-filter" target="test"/>
+ <ant dir="index-static" target="test"/>
<ant dir="indexer-elastic" target="test"/>
<ant dir="language-identifier" target="test"/>
<ant dir="lib-http" target="test"/>
- <ant dir="protocol-file" target="test"/>
- <ant dir="protocol-http" target="test"/>
- <ant dir="protocol-httpclient" target="test"/>
+ <ant dir="lib-regex-filter" target="test"/>
+ <ant dir="mimetype-filter" target="test"/>
<!--ant dir="parse-ext" target="test"/-->
- <ant dir="feed" target="test"/>
<ant dir="parse-html" target="test"/>
<ant dir="parse-metatags" target="test"/>
<ant dir="parse-swf" target="test"/>
<ant dir="parse-tika" target="test"/>
<ant dir="parse-zip" target="test"/>
<ant dir="parsefilter-regex" target="test"/>
+ <ant dir="protocol-file" target="test"/>
+ <ant dir="protocol-http" target="test"/>
+ <ant dir="protocol-httpclient" target="test"/>
<ant dir="subcollection" target="test"/>
<ant dir="urlfilter-automaton" target="test"/>
<ant dir="urlfilter-domain" target="test"/>
<ant dir="urlfilter-domainblacklist" target="test"/>
+ <!--ant dir="urlfilter-ignoreexempt" target="test"/-->
<ant dir="urlfilter-prefix" target="test"/>
<ant dir="urlfilter-regex" target="test"/>
<ant dir="urlfilter-suffix" target="test"/>
<ant dir="urlfilter-validator" target="test"/>
- <ant dir="urlfilter-ignoreexempt" target="test"/>
<ant dir="urlnormalizer-ajax" target="test"/>
<ant dir="urlnormalizer-basic" target="test"/>
<ant dir="urlnormalizer-host" target="test"/>
@@ -150,62 +154,61 @@
<ant dir="creativecommons" target="clean"/>
<ant dir="feed" target="clean"/>
<ant dir="headings" target="clean"/>
- <ant dir="index-basic" target="clean"/>
<ant dir="index-anchor" target="clean"/>
+ <ant dir="index-basic" target="clean"/>
<ant dir="index-geoip" target="clean"/>
+ <ant dir="index-links" target="clean"/>
+ <ant dir="index-metadata" target="clean"/>
<ant dir="index-more" target="clean"/>
- <ant dir="index-static" target="clean"/>
<ant dir="index-replace" target="clean"/>
- <ant dir="index-metadata" target="clean"/>
- <ant dir="index-links" target="clean"/>
- <ant dir="mimetype-filter" target="clean"/>
+ <ant dir="index-static" target="clean"/>
<ant dir="indexer-cloudsearch" target="clean"/>
<ant dir="indexer-dummy" target="clean"/>
<ant dir="indexer-elastic" target="clean"/>
<ant dir="indexer-elastic-rest" target="clean"/>
- <ant dir="indexer-solr" target="clean"/>
<ant dir="indexer-rabbit" target="clean"/>
+ <ant dir="indexer-solr" target="clean"/>
<ant dir="language-identifier" target="clean"/>
- <!-- <ant dir="lib-commons-httpclient" target="clean"/> -->
+ <ant dir="lib-htmlunit" target="clean"/>
<ant dir="lib-http" target="clean"/>
- <!-- <ant dir="lib-lucene-analyzers" target="clean"/>-->
<ant dir="lib-nekohtml" target="clean"/>
<ant dir="lib-regex-filter" target="clean"/>
+ <ant dir="lib-selenium" target="clean"/>
<ant dir="lib-xml" target="clean"/>
<ant dir="microformats-reltag" target="clean"/>
+ <ant dir="mimetype-filter" target="clean"/>
<ant dir="nutch-extensionpoints" target="clean"/>
- <ant dir="protocol-file" target="clean"/>
- <ant dir="protocol-ftp" target="clean"/>
- <ant dir="protocol-http" target="clean"/>
- <ant dir="protocol-httpclient" target="clean"/>
- <ant dir="lib-htmlunit" target="clean"/>
- <ant dir="protocol-htmlunit" target="clean" />
- <ant dir="lib-selenium" target="clean"/>
- <ant dir="protocol-selenium" target="clean" />
- <ant dir="protocol-interactiveselenium" target="clean" />
<ant dir="parse-ext" target="clean"/>
- <ant dir="parse-js" target="clean"/>
<ant dir="parse-html" target="clean"/>
+ <ant dir="parse-js" target="clean"/>
<ant dir="parse-metatags" target="clean"/>
<ant dir="parse-swf" target="clean"/>
<ant dir="parse-tika" target="clean"/>
<ant dir="parse-zip" target="clean"/>
+ <ant dir="parsefilter-naivebayes" target="clean" />
<ant dir="parsefilter-regex" target="clean"/>
+ <ant dir="protocol-file" target="clean"/>
+ <ant dir="protocol-ftp" target="clean"/>
+ <ant dir="protocol-htmlunit" target="clean" />
+ <ant dir="protocol-http" target="clean"/>
+ <ant dir="protocol-httpclient" target="clean"/>
+ <ant dir="protocol-interactiveselenium" target="clean" />
+ <ant dir="protocol-selenium" target="clean" />
+ <ant dir="publish-rabbitmq" target="clean"/>
<ant dir="scoring-depth" target="clean"/>
- <ant dir="scoring-opic" target="clean"/>
<ant dir="scoring-link" target="clean"/>
+ <ant dir="scoring-opic" target="clean"/>
<ant dir="scoring-similarity" target="clean"/>
<ant dir="subcollection" target="clean"/>
<ant dir="tld" target="clean"/>
<ant dir="urlfilter-automaton" target="clean"/>
<ant dir="urlfilter-domain" target="clean" />
<ant dir="urlfilter-domainblacklist" target="clean" />
+ <ant dir="urlfilter-ignoreexempt" target="clean"/>
<ant dir="urlfilter-prefix" target="clean"/>
<ant dir="urlfilter-regex" target="clean"/>
<ant dir="urlfilter-suffix" target="clean"/>
<ant dir="urlfilter-validator" target="clean"/>
- <ant dir="urlfilter-ignoreexempt" target="clean"/>
- <ant dir="parsefilter-naivebayes" target="clean" />
<ant dir="urlmeta" target="clean"/>
<ant dir="urlnormalizer-ajax" target="clean"/>
<ant dir="urlnormalizer-basic" target="clean"/>
diff --git a/src/plugin/parse-replace/README.txt b/src/plugin/parse-replace/README.txt
deleted file mode 100644
index a18bd9c00..000000000
--- a/src/plugin/parse-replace/README.txt
+++ /dev/null
@@ -1,91 +0,0 @@
-ParseReplace plugin
-
-Allows post-parsing regexp replace manipulation of metadata fields.
-
-Configuration Example
- <property>
- <name>parse.replace.regexp</name>
- <value>
- id=/file:/http:/
- url=/file:/http:/128
- </value>
- </property
-
-Property format: parse.replace.regexp
- The format of the property is a list of regexp replacements, one line per field being
- modified. Field names would be one of those from https://wiki.apache.org/nutch/IndexStructure.
-
- The fieldname preceeds the equal sign. The first character after the equal sign signifies
- the delimiter for the regexp, the replacement value and the flags.
-
-Replacement Sequence
- The replacements will happen in the order listed. If a field needs multiple replacement operations
- they may be listed more than once.
-
-RegExp Format
- The regexp and the optional flags should correspond to Pattern.compile(String regexp, int flags) defined
- here: http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#compile%28java.lang.String,%20int%29
- Patterns are compiled when the plugin is initialized for efficiency.
-
-Replacement Format
- The replacement value should correspond to Java Matcher(CharSequence input).replaceAll(String replacement):
- http://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#replaceAll%28java.lang.String%29
-
-Flags
- The flags is an integer sum of the flag values defined in
- http://docs.oracle.com/javase/7/docs/api/constant-values.html (Sec: java.util.regex.Pattern)
-
-Escaping
- Since the regexp is being read from a config file, any escaped values must be double
- escaped. Eg: id=/\\s+// will cause the esacped \s+ match pattern to be used.
-
-Multi-valued Fields
- If a field has multiple values, the replacement will be applied to each value in turn.
-
-Non-string Datatypes
- Replacement is possible only on String field datatypes. If the field you name in the property is
- not a String datatype, it will be silently ignored.
-
-Host and URL specifc replacements.
- If the replacements should apply only to specifc pages, then add a sequence like
-
- hostmatch=/host match pattern/
- fld1=/regexp/replace/flags
- fld2=/regexp/replace/flags
-
- or
- urlmatch=/url match pattern/
- fld1=/regexp/replace/flags
- fld2=/regexp/replace/flags
-
-When using Host and URL replacements, all replacements preceding the first hostmatch or urlmatch
-will apply to all parsed pages. Replacements following a hostmatch or urlmatch will be applied
-to pages which match the host or url field (up to the next hostmatch or urlmatch line). hostmatch
-and urlmatch patterns must be unique in this property.
-
-Plugin order
- TBD... But in most cases you will want this plugin to run last.
-
-Testing your match patterns
- Online Regexp testers like http://www.regexplanet.com/advanced/java/index.html
- can help get the basics of your pattern working.
- To test in nutch:
- Prepare a test HTML file with the field contents you want to test.
- Place this in a directory accessible to nutch.
- Use the file:/// syntax to list the test file(s) in a test/urls seed list.
- See the nutch faq "index my local file system" for conf settings you will need.
- (Note the urlmatch and hostmatch patterns may not conform to your test file host and url; This
- test approach confirms only how your global matches behave, unless your urlmatch and hostmatch
- patterns also match the file: URL pattern)
-
- Run..
- bin/nutch inject crawl/crawldb test
- bin/nutch generate crawl/crawldb crawl/segments
- bin/nutch fetch crawl/segments/[segment]
- bin/nutch parse crawl/segments/[segment]
-
- To inspect the returned fields...
- bin/nutch readseg -dump crawl/segments/[segment] testout
- less testout/dump
-
- To retry: delete crawl/segments/[segment]/crawl_parse and repeat the parse and dump step.
\ No newline at end of file
diff --git a/src/plugin/parse-replace/build.xml b/src/plugin/parse-replace/build.xml
deleted file mode 100644
index ca5ccf73e..000000000
--- a/src/plugin/parse-replace/build.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="parse-replace" default="jar-core">
-
- <import file="../build-plugin.xml" />
-
- <!-- Deploy Unit test dependencies -->
- <target name="deps-test">
- <ant target="deploy" inheritall="false" dir="../nutch-extensionpoints" />
- <ant target="deploy" inheritall="false" dir="../protocol-file" />
- </target>
-
-
- <!-- for junit test -->
- <mkdir dir="${build.test}/data" />
- <copy todir="${build.test}/data">
- <fileset dir="sample">
- <include name="*.html" />
- </fileset>
- </copy>
-
-</project>
diff --git a/src/plugin/parse-replace/ivy.xml b/src/plugin/parse-replace/ivy.xml
deleted file mode 100644
index 1a86d6803..000000000
--- a/src/plugin/parse-replace/ivy.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" ?>
-
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<ivy-module version="1.0">
- <info organisation="org.apache.nutch" module="${ant.project.name}">
- <license name="Apache 2.0"/>
- <ivyauthor name="Apache Nutch Team" url="http://nutch.apache.org"/>
- <description>
- Apache Nutch
- </description>
- </info>
-
- <configurations>
- <include file="../../..//ivy/ivy-configurations.xml"/>
- </configurations>
-
- <publications>
- <!--get the artifact from our module name-->
- <artifact conf="master"/>
- </publications>
-
- <dependencies>
- </dependencies>
-
-</ivy-module>
diff --git a/src/plugin/parse-replace/plugin.xml b/src/plugin/parse-replace/plugin.xml
deleted file mode 100644
index 6368210ad..000000000
--- a/src/plugin/parse-replace/plugin.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="parse-replace"
- name="ReplaceParser"
- version="1.0"
- provider-name="PeterCiuffetti">
-
- <runtime>
- <library name="parse-replace.jar">
- <export name="*"/>
- </library>
- </runtime>
-
- <extension id="org.apache.nutch.parse.replace.parser"
- name="Replace Parser"
- point="org.apache.nutch.parse.HtmlParseFilter">
- <implementation id="ReplaceParser"
- class="org.apache.nutch.parse.replace.ReplaceParser"/>
- </extension>
-
-</plugin>
-
diff --git a/src/plugin/parse-replace/sample/testParseReplace.html b/src/plugin/parse-replace/sample/testParseReplace.html
deleted file mode 100644
index 825dcb9c4..000000000
--- a/src/plugin/parse-replace/sample/testParseReplace.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html>
- <head>
- <title>Testing the power of parser-replace plugin</title>
- <meta name="description" content="With this plugin, nutch is my bitch! Bwuhuhuhaha!">
- <meta name="keywords" content="Awesome, Riveting, Two Thumbs Up!">
- <meta name="author" content="Peter Ciuffetti">
- </head>
- <body>
- <p>This html file is used to test the Nutch parse-replace regexp replacer plugin. A decidely boring thing to do.</p>
- </body>
-</html>
\ No newline at end of file
diff --git a/src/plugin/parse-replace/src/java/org/apache/nutch/parse/replace/ReplaceParser.java b/src/plugin/parse-replace/src/java/org/apache/nutch/parse/replace/ReplaceParser.java
deleted file mode 100644
index 9773c4a70..000000000
--- a/src/plugin/parse-replace/src/java/org/apache/nutch/parse/replace/ReplaceParser.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.nutch.parse.replace;
-
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.hadoop.conf.Configuration;
-import org.apache.nutch.parse.HTMLMetaTags;
-import org.apache.nutch.parse.HtmlParseFilter;
-import org.apache.nutch.parse.Parse;
-import org.apache.nutch.parse.ParseResult;
-import org.apache.nutch.protocol.Content;
-import org.w3c.dom.DocumentFragment;
-
-/**
- * Do pattern replacements on selected field contents
- * prior to indexing.
- */
-public class ReplaceParser implements HtmlParseFilter {
-
- private static final Log LOG = LogFactory.getLog(ReplaceParser.class
- .getName());
-
- private static Map<String, List<Object>> REPLACEPATTERNS_BY_HOST = new HashMap();
- private static Map<String, List<Object>> REPLACEPATTERNS_BY_URL = new HashMap();
-
- private Configuration conf;
-
- private Set<String> metatagset = new HashSet<String>();
-
- public void setConf(Configuration conf) {
- this.conf = conf;
- String[] values = conf.getStrings("parse.replace.regexp", null);
- if (values != null) {
- this.parseConf(values);
- }
- }
-
- public Configuration getConf() {
- return this.conf;
- }
-
- private void parseConf(String[] values) {
-
- }
-
- public ParseResult filter(Content content, ParseResult parseResult,
- HTMLMetaTags metaTags, DocumentFragment doc) {
-
- Parse parse = parseResult.get(content.getUrl());
-
- return parseResult;
- }
-}
diff --git a/src/plugin/parse-replace/src/java/org/apache/nutch/parse/replace/package-info.java b/src/plugin/parse-replace/src/java/org/apache/nutch/parse/replace/package-info.java
deleted file mode 100644
index b678f0077..000000000
--- a/src/plugin/parse-replace/src/java/org/apache/nutch/parse/replace/package-info.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Parse filter to allow pattern replacements on parsed metadata.
- */
-package org.apache.nutch.parse.replace;
-
diff --git a/src/plugin/parse-replace/src/test/org/apache/nutch/parse/replace/TestParseReplace.java b/src/plugin/parse-replace/src/test/org/apache/nutch/parse/replace/TestParseReplace.java
deleted file mode 100644
index 593d5edf9..000000000
--- a/src/plugin/parse-replace/src/test/org/apache/nutch/parse/replace/TestParseReplace.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.nutch.parse.replace;
-
-import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.io.Text;
-import org.apache.nutch.crawl.CrawlDatum;
-import org.apache.nutch.metadata.Metadata;
-import org.apache.nutch.parse.Parse;
-import org.apache.nutch.parse.ParseUtil;
-import org.apache.nutch.protocol.Content;
-import org.apache.nutch.protocol.Protocol;
-import org.apache.nutch.protocol.ProtocolFactory;
-import org.apache.nutch.util.NutchConfiguration;
-import org.junit.Assert;
-import org.junit.Test;
-
-public class TestParseReplace {
-
- private String fileSeparator = System.getProperty("file.separator");
- private String sampleDir = System.getProperty("test.data", ".");
- private String sampleFile = "testParseReplace.html";
- private String description = "This is a test of description";
- private String keywords = "This is a test of keywords";
-
- public Metadata parseMeta(String fileName, Configuration conf) {
- Metadata metadata = null;
- try {
- String urlString = "file:" + sampleDir + fileSeparator + fileName;
- Protocol protocol = new ProtocolFactory(conf).getProtocol(urlString);
- Content content = protocol.getProtocolOutput(new Text(urlString),
- new CrawlDatum()).getContent();
- Parse parse = new ParseUtil(conf).parse(content).get(content.getUrl());
- metadata = parse.getData().getParseMeta();
- } catch (Exception e) {
- e.printStackTrace();
- Assert.fail(e.toString());
- }
- return metadata;
- }
-
- @Test
- /** test defaults: keywords and description */
- public void testIt() {
- Configuration conf = NutchConfiguration.create();
-
- // check that we get the same values
- Metadata parseMeta = parseMeta(sampleFile, conf);
-
- Assert.assertEquals(description, parseMeta.get("metatag.description"));
- Assert.assertEquals(keywords, parseMeta.get("metatag.keywords"));
- }
-}