2016-05-30 19 views
1

eclipseを使用してmavenプロジェクトをビルドしようとしています。私の全体的な問題は、プロジェクトを構築するために必要な成果物を収集するためにMavenがオンラインのMavenリポジトリに接続しないことです。私は、多くのプロキシを使用してみましたが、次のエラーを取得していますMavenはeclipseを使用して依存関係をダウンロードできません、プロキシは動作しません

Caused by: java.io.IOException: unexpected end of stream on Connection{repo.maven.apache.org:443, proxy=HTTP @ /101.96.11.44:95 hostAddress=101.96.11.44 cipherSuite=none protocol=http/1.1} (recycle count=0) 
at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:210) 
at com.squareup.okhttp.Connection.makeTunnel(Connection.java:400) 
at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:229) 
at com.squareup.okhttp.Connection.connect(Connection.java:159) 
at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:175) 
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:120) 
at com.squareup.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:330) 
at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:319) 
at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:241) 
at com.squareup.okhttp.Call.getResponse(Call.java:271) 
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:228) 
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:199) 
at com.squareup.okhttp.Call.execute(Call.java:79) 
at io.takari.aether.okhttp.OkHttpAetherClient.execute(OkHttpAetherClient.java:154) 
at io.takari.aether.okhttp.OkHttpAetherClient.get(OkHttpAetherClient.java:100) 
at io.takari.aether.connector.AetherRepositoryConnector$GetTask.resumableGet(AetherRepositoryConnector.java:600) 
at io.takari.aether.connector.AetherRepositoryConnector$GetTask.run(AetherRepositoryConnector.java:453) 
at io.takari.aether.connector.AetherRepositoryConnector.get(AetherRepositoryConnector.java:304) 
... 48 more 

Caused by: java.io.EOFException: \n not found: size=0 content=... 
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:200) 
at com.squareup.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:190) 
... 65 more 

私も自分と全く成功していなかったではない別のネットワークに接続しようとしています。

私はプロキシを使用しない場合、私は、次のエラーを取得する:私が見つけた

Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake 
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:980) 
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363) 
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391) 
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375) 
at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:242) 
at com.squareup.okhttp.Connection.connect(Connection.java:159) 
at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:175) 
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:120) 
at com.squareup.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:330) 
at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:319) 
at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:241) 
at com.squareup.okhttp.Call.getResponse(Call.java:271) 
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:228) 
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:199) 
at com.squareup.okhttp.Call.execute(Call.java:79) 
at io.takari.aether.okhttp.OkHttpAetherClient.execute(OkHttpAetherClient.java:154) 
at io.takari.aether.okhttp.OkHttpAetherClient.get(OkHttpAetherClient.java:100) 
at io.takari.aether.connector.AetherRepositoryConnector$GetTask.resumableGet(AetherRepositoryConnector.java:600) 
at io.takari.aether.connector.AetherRepositoryConnector$GetTask.run(AetherRepositoryConnector.java:453) 
at io.takari.aether.connector.AetherRepositoryConnector.get(AetherRepositoryConnector.java:304) 
... 48 more 

Caused by: java.io.EOFException: SSL peer shut down incorrectly 
at sun.security.ssl.InputRecord.read(InputRecord.java:505) 
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:961) 
... 67 more 

唯一の解決策は、依存関係を手動でMavenのリポジトリから一つずつダウンロードしています。インストールするために100以上の依存関係が残っていることを考えれば、これを稼働させるのに多くの時間を費やさないことを本当に好むだろう。他の詳細を提供する必要がある場合は、私はそうすることを喜んでします。

+0

プロキシ '101.96.11.44:95'がまったく動作し、珍しい認証が必要な場合は、Curlで手動で検証することができます。 – eckes

+0

ブラウザはどのようなプロキシを使用していますか? –

+0

クイックレスポンスありがとうございました。 eckes、プロキシでカールを使用する方法について具体的になるでしょうか? David、私はいくつかの異なるタイプのプロキシを使ってみました。彼らの誰も働いていないように見えるので、私のEclipse設定で何らかの問題があると思うようになります。 –

答えて

1

Windowsでは、私のプロジェクトのコマンドシェルでmvn installを使用してこの問題を解決しました。

次に、ダウンロードした依存関係を見つけたc:/users/ttt/.m2/repositoryに、EclipseのMavenユーザー設定のsettings.xmlに<localRepository>を追加/変更しました。

関連する問題