Nutch 2.2 をセットアップしようとしています。コマンドを実行しant runtime
てプロジェクトをビルドすると、ビルドに失敗します:
Server access Error: Connection refused..........
ダウンロードできないファイルのMavenリポジトリが続きます。
特定のものをダウンロードできないことが多いプロキシサーバーのセットアップがあり、これがここでの問題ではないかと心配しています.
これを設定する他の方法はありますか?
ant のプロキシを構成する必要があるため、コンソールで の前にant runtime
、次のような ant オプションを構成できます。
export ANT_OPTS='-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttp.proxyUser=user -Dhttp.proxyPassword=password -Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080'
それだけでは不十分な場合は、~/.m2/settings.xml
追加を構成する必要があるかもしれません (次のようなもの):
<proxies>
<proxy>
<id>proxyId</id>
<active>true</active>
<protocol>http</protocol>
<username>user</username>
<password>password</password>
<host>proxy</host>
<port>8080</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
</proxies>