jruby / jruby-rack

Rack for JRuby and Java appservers
MIT License
397 stars 137 forks source link

Building jruby-rack fails...[ERROR] Failed to execute goal on project jruby-rack: Could not resolve dependencies for project... #142

Closed ghost closed 11 years ago

ghost commented 11 years ago
$ git clone git://github.com/jruby/jruby-rack.git
$ mvn -X install
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_10, vendor: Oracle Corporation
Java home: /opt/jdk1.7.0_10/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-35-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/wt/.m2/settings.xml
[DEBUG] Using local repository at /home/wt/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/wt/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo.maven.apache.org/maven2
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom (2 KB at 0.3 KB/sec)

...

Downloading: http://repository.codehaus.org/org/apache/commons/commons-parent/5/commons-parent-5.pom
[DEBUG] Writing resolution tracking file /home/wt/.m2/repository/org/apache/commons/commons-parent/5/commons-parent-5.pom.lastUpdated
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo.maven.apache.org/maven2
Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom (16 KB at 8.5 KB/sec)
[DEBUG] Writing resolution tracking file /home/wt/.m2/repository/org/apache/commons/commons-parent/5/commons-parent-5.pom.lastUpdated
[DEBUG] Writing resolution tracking file /home/wt/.m2/repository/org/apache/commons/commons-parent/5/_maven.repositories
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:33.571s
[INFO] Finished at: Sun Jan 20 03:07:39 EST 2013
[INFO] Final Memory: 6M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jruby-rack: Could not resolve dependencies for project org.jruby.rack:jruby-rack:jar:1.1.14-SNAPSHOT: Failed to collect dependencies for [org.jruby:jruby-complete:jar:1.6.8 (compile), org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2 (provided), org.apache.geronimo.specs:geronimo-jsp_2.1_spec:jar:1.0.1 (provided), org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2 (provided), org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1 (provided), commons-logging:commons-logging-api:jar:1.1 (provided), org.slf4j:slf4j-api:jar:1.6.0 (provided), log4j:log4j:jar:1.2.17 (provided), org.springframework:spring-core:jar:3.1.1.RELEASE (test)]: Failed to read artifact descriptor for org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2: Could not transfer artifact org.apache.geronimo.specs:geronimo-el_1.0_spec:pom:1.0.2 from/to central (http://repo.maven.apache.org/maven2): Connection reset -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jruby-rack: Could not resolve dependencies for project org.jruby.rack:jruby-rack:jar:1.1.14-SNAPSHOT: Failed to collect dependencies for [org.jruby:jruby-complete:jar:1.6.8 (compile), org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2 (provided), org.apache.geronimo.specs:geronimo-jsp_2.1_spec:jar:1.0.1 (provided), org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2 (provided), org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1 (provided), commons-logging:commons-logging-api:jar:1.1 (provided), org.slf4j:slf4j-api:jar:1.6.0 (provided), log4j:log4j:jar:1.2.17 (provided), org.springframework:spring-core:jar:3.1.1.RELEASE (test)]
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.jruby.rack:jruby-rack:jar:1.1.14-SNAPSHOT: Failed to collect dependencies for [org.jruby:jruby-complete:jar:1.6.8 (compile), org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2 (provided), org.apache.geronimo.specs:geronimo-jsp_2.1_spec:jar:1.0.1 (provided), org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2 (provided), org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1 (provided), commons-logging:commons-logging-api:jar:1.1 (provided), org.slf4j:slf4j-api:jar:1.6.0 (provided), log4j:log4j:jar:1.2.17 (provided), org.springframework:spring-core:jar:3.1.1.RELEASE (test)]
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
    ... 22 more
Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [org.jruby:jruby-complete:jar:1.6.8 (compile), org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2 (provided), org.apache.geronimo.specs:geronimo-jsp_2.1_spec:jar:1.0.1 (provided), org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2 (provided), org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1 (provided), commons-logging:commons-logging-api:jar:1.1 (provided), org.slf4j:slf4j-api:jar:1.6.0 (provided), log4j:log4j:jar:1.2.17 (provided), org.springframework:spring-core:jar:3.1.1.RELEASE (test)]
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
    ... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
    ... 25 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.geronimo.specs:geronimo-el_1.0_spec:pom:1.0.2 from/to central (http://repo.maven.apache.org/maven2): Connection reset
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
    ... 28 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.geronimo.specs:geronimo-el_1.0_spec:pom:1.0.2 from/to central (http://repo.maven.apache.org/maven2): Connection reset
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:939)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)
    at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.wagon.TransferFailedException: Connection reset
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:567)
    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:601)
    ... 4 more
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
    at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
    at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
    at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:446)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:561)
    ... 8 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
kares commented 11 years ago

seems you can not download org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2 from central I'm not sure we can do anything about it - seems fine locally as well as on travis-ci ... must be smt about your setup