0

Nutch 2.2 をセットアップしようとしています。コマンドを実行しant runtimeてプロジェクトをビルドすると、ビルドに失敗します:

Server access Error: Connection refused..........

ダウンロードできないファイルのMavenリポジトリが続きます。

特定のものをダウンロードできないことが多いプロキシサーバーのセットアップがあり、これがここでの問題ではないかと心配しています.

これを設定する他の方法はありますか?

4

1 に答える 1

0

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>
于 2013-08-28T10:35:57.073 に答える