Hi
Can anyone help me with building nutch 2.3 on Ubuntu, Many many thanks!
The first question is Where can I find the compiler error output file?
I checked the failed lines, they are
/apache-nutch-2.3/build.xml:113: <ant dir="src/plugin" target="deploy"
inheritAll="false" />
apache-nutch-2.3/src/plugin/build.xml:35; <property name="maven-javadoc-jar"
value="${release.dir}/${artifactId}-${version}-javadoc.jar" />
/apache-nutch-2.3/src/plugin/build-plugin.xml:117:
deprecation="${javac.deprecation}">
When I run "ant"
the result shows
.java:273: warning: [deprecation] OptionBuilder in org.apache.commons.cli has
been deprecated
[javac] OptionBuilder.hasOptionalArg();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:274:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withArgName("force");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:275:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] options.addOption(OptionBuilder.create(CMD_STOP));
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:277:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withDescription("Show this help");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:278:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] options.addOption(OptionBuilder.create(CMD_HELP));
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:280:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withDescription("Port to use for restful API.");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:281:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.hasOptionalArg();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:282:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withArgName("port number");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/api/NutchServer.java:283:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] options.addOption(OptionBuilder.create(CMD_PORT));
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:163:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withArgName("help");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:164:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withDescription("show this help message");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:165:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] Option helpOpts = OptionBuilder.create("help");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:167:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withArgName("urls");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:168:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.hasArg();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:169:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withDescription("the urls file to check");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:170:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] Option urlOpts = OptionBuilder.create("urls");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:172:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withArgName("numThreads");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:173:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.hasArgs();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:174:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withDescription("the number of threads to use");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:175:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] Option numThreadOpts = OptionBuilder.create("numThreads");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/tools/ResolveUrls.java:181:
warning: [deprecation] GnuParser in org.apache.commons.cli has been deprecated
[javac] CommandLineParser parser = new GnuParser();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/webui/NutchUiServer.java:47:
warning: [deprecation] GnuParser in org.apache.commons.cli has been deprecated
[javac] CommandLineParser parser = new GnuParser();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/webui/NutchUiServer.java:96:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withDescription("Port to run the WebApplication
on.");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/webui/NutchUiServer.java:97:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.hasOptionalArg();
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/webui/NutchUiServer.java:98:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] OptionBuilder.withArgName("port number");
[javac] ^
[javac]
/home/dan/apache-nutch-2.3/src/java/org/apache/nutch/webui/NutchUiServer.java:99:
warning: [deprecation] OptionBuilder in org.apache.commons.cli has been
deprecated
[javac] options.addOption(OptionBuilder.create(CMD_PORT));
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 39 warnings
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/storage/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/tools/arc/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/util/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/api/impl/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/net/protocols/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/tools/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/tools/proxy/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/scoring/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/host/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/net/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/parse/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/api/package-info.class
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/classes/org/apache/nutch/protocol/package-info.class
[copy] Copying 19 files to /home/dan/apache-nutch-2.3/build/classes
jar:
[copy] Copying 1 file to /home/dan/apache-nutch-2.3/build/classes
[copy] Copying 1 file to /home/dan/apache-nutch-2.3/build/classes
[jar] Building jar: /home/dan/apache-nutch-2.3/build/apache-nutch-2.3.jar
compile-plugins:
deploy:
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/creativecommons
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/creativecommons/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/creativecommons/test
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/plugins/creativecommons
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: creativecommons
[javac] Compiling 2 source files to
/home/dan/apache-nutch-2.3/build/creativecommons/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac] 1 warning
jar:
[jar] Building jar:
/home/dan/apache-nutch-2.3/build/creativecommons/creativecommons.jar
deps-test:
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/nutch-extensionpoints
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/nutch-extensionpoints/classes
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/nutch-extensionpoints/test
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/plugins/nutch-extensionpoints
init-plugin:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
jar:
[jar] Building MANIFEST-only jar:
/home/dan/apache-nutch-2.3/build/nutch-extensionpoints/nutch-extensionpoints.jar
deps-test:
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/nutch-extensionpoints
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/nutch-extensionpoints
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/creativecommons
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/creativecommons
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-anchor
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-anchor/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-anchor/test
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/plugins/index-anchor
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: index-anchor
[javac] Compiling 1 source file to
/home/dan/apache-nutch-2.3/build/index-anchor/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac] 1 warning
jar:
[jar] Building jar:
/home/dan/apache-nutch-2.3/build/index-anchor/index-anchor.jar
deps-test:
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-anchor
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-anchor
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-basic
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-basic/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-basic/test
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/plugins/index-basic
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: index-basic
[javac] Compiling 1 source file to
/home/dan/apache-nutch-2.3/build/index-basic/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac] 1 warning
jar:
[jar] Building jar:
/home/dan/apache-nutch-2.3/build/index-basic/index-basic.jar
deps-test:
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-basic
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-basic
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-more
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-more/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-more/test
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/plugins/index-more
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: index-more
[javac] Compiling 1 source file to
/home/dan/apache-nutch-2.3/build/index-more/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac] 1 warning
jar:
[jar] Building jar:
/home/dan/apache-nutch-2.3/build/index-more/index-more.jar
deps-test:
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-more
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-more
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-metadata
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-metadata/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/index-metadata/test
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/plugins/index-metadata
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: index-metadata
[javac] Compiling 2 source files to
/home/dan/apache-nutch-2.3/build/index-metadata/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac] 1 warning
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/index-metadata/classes/org/apache/nutch/indexer/metadata/package-info.class
jar:
[jar] Building jar:
/home/dan/apache-nutch-2.3/build/index-metadata/index-metadata.jar
deps-test:
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-metadata
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/index-metadata
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/indexer-solr
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/indexer-solr/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/indexer-solr/test
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/plugins/indexer-solr
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: indexer-solr
[javac] Compiling 5 source files to
/home/dan/apache-nutch-2.3/build/indexer-solr/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac] 1 warning
[javac] Creating empty
/home/dan/apache-nutch-2.3/build/indexer-solr/classes/org/apache/nutch/indexwriter/solr/package-info.class
jar:
[jar] Building jar:
/home/dan/apache-nutch-2.3/build/indexer-solr/indexer-solr.jar
deps-test:
deploy:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/indexer-solr
copy-generated-lib:
[copy] Copying 1 file to
/home/dan/apache-nutch-2.3/build/plugins/indexer-solr
init:
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/indexer-elastic
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/indexer-elastic/classes
[mkdir] Created dir: /home/dan/apache-nutch-2.3/build/indexer-elastic/test
[mkdir] Created dir:
/home/dan/apache-nutch-2.3/build/plugins/indexer-elastic
init-plugin:
deps-jar:
clean-lib:
resolve-default:
[ivy:resolve] :: loading settings :: file =
/home/dan/apache-nutch-2.3/ivy/ivysettings.xml
compile:
[echo] Compiling plugin: indexer-elastic
[javac] Compiling 3 source files to
/home/dan/apache-nutch-2.3/build/indexer-elastic/classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.6
[javac]
/home/dan/apache-nutch-2.3/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java:108:
error: no suitable constructor found for InetSocketTransportAddress(String,int)
[javac] .addTransportAddress(new InetSocketTransportAddress(host,
port));
[javac] ^
[javac] constructor
InetSocketTransportAddress.InetSocketTransportAddress(InetSocketAddress) is not
applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor
InetSocketTransportAddress.InetSocketTransportAddress(InetAddress,int) is not
applicable
[javac] (actual argument String cannot be converted to InetAddress by
method invocation conversion)
[javac] constructor
InetSocketTransportAddress.InetSocketTransportAddress() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor
InetSocketTransportAddress.InetSocketTransportAddress(StreamInput) is not
applicable
[javac] (actual and formal argument lists differ in length)
[javac]
/home/dan/apache-nutch-2.3/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java:107:
error: constructor TransportClient in class TransportClient cannot be applied
to given types;
[javac] client = new TransportClient(settings)
[javac] ^
[javac] required: Injector
[javac] found: Settings
[javac] reason: actual argument Settings cannot be converted to Injector
by method invocation conversion
[javac] 2 errors
[javac] 1 warning
BUILD FAILED
/home/dan/apache-nutch-2.3/build.xml:113: The following error occurred while
executing this line:
/home/dan/apache-nutch-2.3/src/plugin/build.xml:35: The following error
occurred while executing this line:
/home/dan/apache-nutch-2.3/src/plugin/build-plugin.xml:117: Compile failed; see
the compiler error output for details.
Total time: 10 seconds