問題是:Nexus-maven-repository-index.zip在10kbps和maven eclipse下載:eclipse神器下載停止/暫停。我不支持任何代理。Maven網絡問題?
編輯:這是由AVG鏈接掃描儀,相同的問題引起的,如Maven failing to download jar dependencies
我想我已經得到了一些嚴重的問題,與我的Maven安裝/網絡連接。
這就是我做什麼,我得到:
我一直在試圖使用m2eclipse的,但一段時間超時後通過Eclipse下載文件http://mirrors.ibiblio.org/pub/mirrors/maven2/dot-index/nexus-maven-repository-index.zip。我試圖通過wget獲取文件,我看到的是,下載速度爲11kbps。這是一種政策嗎?這個11kbps看起來很穩定。現在我已經有了如此驚人的速度,所以這不是一個暫時的問題。如果這是每個人的政策和正常速度 - 那很好。我不會使用m2eclipse,沒問題。
我已經辭職了使用m2eclipse,我使用的是maven-eclipse-plugin。不,等等 - 我不是。以下是我在調用mvn eclipse時會發生的事情:eclipse:
神器下載後暫時掛起,隨機。然後,我擊中^ C,再次運行命令,donwload恢復,然後再次掛起,有時在相同的神器上,有時我會進一步進一步。我在調試模式下運行mvn,它總是掛在同一個地方,下面的堆棧跟蹤。跟英國回購一樣。
發生了什麼事?感謝任何幫助,我完全失去了。我假設我的互聯網連接是混亂的,但它工作得很好(除了maven)。我覺得像maven repo blakclisted。
任何想法?
重要細節如下:
下面是如何運行Maven(與任何線程的數目同樣的情況)
mvnDebug eclipse:eclipse -DdownloadSources=true -Dmaven.artifact.threads=1
這裏是我的Maven版本(同樣的情況與最新maven 2版):
$ mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\apache-maven-3.0.4
Java version: 1.7.0_04, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_04\jre
Default locale: pl_PL, platform encoding: Cp1250
OS name: "windows vista", version: "6.0", arch: "x86", family: "windows"
這裏的堆棧跟蹤,其中行家日食:(?看起來像一個網絡問題,但爲什麼)蝕掛起:
java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, byte[], int, int, int) line: not available [native method]
java.net.SocketInputStream.read(byte[], int, int, int) line: 150
java.net.SocketInputStream.read(byte[], int, int) line: 121
org.apache.maven.wagon.providers.http.httpclient.impl.io.SocketInputBuffer(org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionInputBuffer).fillBuffer() line: 149
org.apache.maven.wagon.providers.http.httpclient.impl.io.SocketInputBuffer.fillBuffer() line: 110
org.apache.maven.wagon.providers.http.httpclient.impl.io.SocketInputBuffer(org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionInputBuffer).read(byte[], int, int) line: 195
org.apache.maven.wagon.providers.http.httpclient.impl.io.ChunkedInputStream.read(byte[], int, int) line: 173
org.apache.maven.wagon.providers.http.httpclient.conn.EofSensorInputStream.read(byte[], int, int) line: 138
java.util.zip.GZIPInputStream(java.util.zip.InflaterInputStream).fill() line: 238
java.util.zip.GZIPInputStream(java.util.zip.InflaterInputStream).read(byte[], int, int) line: 158
java.util.zip.GZIPInputStream.read(byte[], int, int) line: 116
org.apache.maven.wagon.providers.http.HttpWagon(org.apache.maven.wagon.AbstractWagon).transfer(org.apache.maven.wagon.resource.Resource, java.io.InputStream, java.io.OutputStream, int, int) line: 493
org.apache.maven.wagon.providers.http.HttpWagon(org.apache.maven.wagon.AbstractWagon).getTransfer(org.apache.maven.wagon.resource.Resource, java.io.OutputStream, java.io.InputStream, boolean, int) line: 339
org.apache.maven.wagon.providers.http.HttpWagon(org.apache.maven.wagon.AbstractWagon).getTransfer(org.apache.maven.wagon.resource.Resource, java.io.File, java.io.InputStream, boolean, int) line: 310
org.apache.maven.wagon.providers.http.HttpWagon(org.apache.maven.wagon.AbstractWagon).getTransfer(org.apache.maven.wagon.resource.Resource, java.io.File, java.io.InputStream) line: 287
org.apache.maven.wagon.providers.http.HttpWagon(org.apache.maven.wagon.StreamWagon).getIfNewer(java.lang.String, java.io.File, long) line: 97
org.apache.maven.wagon.providers.http.HttpWagon(org.apache.maven.wagon.StreamWagon).get(java.lang.String, java.io.File) line: 61
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask<T>.run() line: 601
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run() line: 60
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$1.execute(java.lang.Runnable) line: 192
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(java.util.Collection<? extends org.sonatype.aether.spi.connector.ArtifactDownload>, java.util.Collection<? extends org.sonatype.aether.spi.connector.MetadataDownload>) line: 445
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(org.sonatype.aether.RepositorySystemSession, java.util.Collection<? extends org.sonatype.aether.resolution.ArtifactRequest>) line: 457
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(org.sonatype.aether.RepositorySystemSession, java.util.Collection<? extends org.sonatype.aether.resolution.ArtifactRequest>) line: 216
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(org.sonatype.aether.RepositorySystemSession, org.sonatype.aether.resolution.ArtifactRequest) line: 193
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(org.sonatype.aether.RepositorySystemSession, org.sonatype.aether.resolution.ArtifactRequest) line: 286
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(org.apache.maven.artifact.Artifact, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>, org.sonatype.aether.RepositorySystemSession) line: 213
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(org.apache.maven.artifact.Artifact, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>, org.apache.maven.artifact.repository.ArtifactRepository, org.apache.maven.wagon.events.TransferListener) line: 157
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(org.apache.maven.artifact.Artifact, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>, org.apache.maven.artifact.repository.ArtifactRepository) line: 525
org.apache.maven.plugin.ide.IdeUtils.resolveArtifact(org.apache.maven.artifact.resolver.ArtifactResolver, org.apache.maven.artifact.Artifact, java.util.List, org.apache.maven.artifact.repository.ArtifactRepository, org.apache.maven.plugin.logging.Log) line: 442
org.apache.maven.plugin.eclipse.EclipsePlugin(org.apache.maven.plugin.ide.AbstractIdeSupportMojo).resolveDependenciesWithClassifier(org.apache.maven.plugin.ide.IdeDependency[], java.lang.String, boolean) line: 990
org.apache.maven.plugin.eclipse.EclipsePlugin(org.apache.maven.plugin.ide.AbstractIdeSupportMojo).resolveSourceAndJavadocArtifacts(org.apache.maven.plugin.ide.IdeDependency[]) line: 918
org.apache.maven.plugin.eclipse.EclipsePlugin(org.apache.maven.plugin.ide.AbstractIdeSupportMojo).execute() line: 509
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(org.apache.maven.execution.MavenSession, org.apache.maven.plugin.MojoExecution) line: 101
org.apache.maven.lifecycle.internal.MojoExecutor.execute(org.apache.maven.execution.MavenSession, org.apache.maven.plugin.MojoExecution, org.apache.maven.lifecycle.internal.ProjectIndex, org.apache.maven.lifecycle.internal.DependencyContext) line: 209
org.apache.maven.lifecycle.internal.MojoExecutor.execute(org.apache.maven.execution.MavenSession, org.apache.maven.plugin.MojoExecution, org.apache.maven.lifecycle.internal.ProjectIndex, org.apache.maven.lifecycle.internal.DependencyContext, org.apache.maven.lifecycle.internal.PhaseRecorder) line: 153
org.apache.maven.lifecycle.internal.MojoExecutor.execute(org.apache.maven.execution.MavenSession, java.util.List<org.apache.maven.plugin.MojoExecution>, org.apache.maven.lifecycle.internal.ProjectIndex) line: 145
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(org.apache.maven.execution.MavenSession, org.apache.maven.execution.MavenSession, org.apache.maven.lifecycle.internal.ReactorContext, org.apache.maven.project.MavenProject, org.apache.maven.lifecycle.internal.TaskSegment) line: 84
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(org.apache.maven.execution.MavenSession, org.apache.maven.lifecycle.internal.ReactorContext, org.apache.maven.project.MavenProject, org.apache.maven.lifecycle.internal.TaskSegment) line: 59
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(org.apache.maven.execution.MavenSession, org.apache.maven.lifecycle.internal.ReactorContext, org.apache.maven.lifecycle.internal.ProjectBuildList, java.util.List<org.apache.maven.lifecycle.internal.TaskSegment>, org.apache.maven.lifecycle.internal.ReactorBuildStatus) line: 183
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(org.apache.maven.execution.MavenSession) line: 161
org.apache.maven.DefaultMaven.doExecute(org.apache.maven.execution.MavenExecutionRequest) line: 320
org.apache.maven.DefaultMaven.execute(org.apache.maven.execution.MavenExecutionRequest) line: 156
org.apache.maven.cli.MavenCli.execute(org.apache.maven.cli.MavenCli$CliRequest) line: 537
org.apache.maven.cli.MavenCli.doMain(org.apache.maven.cli.MavenCli$CliRequest) line: 196
org.apache.maven.cli.MavenCli.main(java.lang.String[], org.codehaus.plexus.classworlds.ClassWorld) line: 141
sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) line: not available [native method]
sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 57
sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 43
java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object...) line: 601
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(java.lang.String[]) line: 290
org.codehaus.plexus.classworlds.launcher.Launcher.launch(java.lang.String[]) line: 230
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(java.lang.String[]) line: 409
org.codehaus.plexus.classworlds.launcher.Launcher.main(java.lang.String[]) line: 352
感謝您的任何提示。
科內爾
你可以用更高速度的瀏覽器下載文件嗎? – Behe
是的,我試過下載手動(瀏覽器),而maven不能恢復donwload。網頁瀏覽器下載得很好。但它不是一個特定的artifcat,我遇到了麻煩(maven隨機掛起,在^ C後恢復出現的問題,它會掛在下一個文件上) – Kornel
我試着下載你提到的文件,速度很慢**。這似乎不是一個m2eclipse的問題,但最終與他們的服務器?你能提供一個顯示錯誤的部分嗎?我可以嘗試重現這種行爲。 – Behe