question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent Maven build errors - Could not resolve dependencies / Could not transfer artifact

See original GitHub issue

We’re occasionally getting build errors that look like this:

[ERROR] Failed to execute goal on project buildtools: Could not resolve dependencies for project org.apache.pulsar:buildtools:jar:2.6.0-SNAPSHOT: Could not transfer artifact org.apache-extras.beanshell:bsh:jar:2.0b6 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache-extras/beanshell/bsh/2.0b6/bsh-2.0b6.jar 503 between bytes timeout -> [Help 1]

[ERROR] Failed to execute goal on project pulsar-presto-distribution: Could not resolve dependencies for project org.apache.pulsar:pulsar-presto-distribution:jar:2.6.0-SNAPSHOT: Could not transfer artifact org.eclipse.jetty:jetty-io:jar:9.4.11.v20180605 from/to central (https://repo.maven.apache.org/maven2): Failed to transfer file https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-io/9.4.11.v20180605/jetty-io-9.4.11.v20180605.jar with status code 500 -> [Help 1]

Here’s a third case (with an image of where it appeared):

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
lhotaricommented, Dec 10, 2020

I seems that the solution introduced in #8386 doesn’t fix all “Connection reset” issues. The recommendation seems to be to disable the connection pooling completely with -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false options instead of configuring the pool TTL and retry counts.

Here’s a recent failure:

Error:  Plugin pl.project13.maven:git-commit-id-plugin:4.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for pl.project13.maven:git-commit-id-plugin:jar:4.0.2: Could not transfer artifact pl.project13.maven:git-commit-id-plugin:pom:4.0.2 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom: Connection reset -> [Help 1]

another similar failure.

0reactions
lhotaricommented, Oct 27, 2020

I now found https://issues.apache.org/jira/browse/WAGON-545 which is a close match to this issue. In the last comment, it says “Azure users shall set the TTL to 240 seconds or less.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Could not resolve dependencies, artifacts could not be ...
Doing mvn dependency:tree, dependency:list, or the usual build package, will result in the same error. The error from running the 'package' build from...
Read more >
Maven build fails intermittently due to artificats not found error
I am getting this error. [ERROR] Failed to execute goal on project dailytaskcreator: Could not resolve dependencies for project com.vishnu.
Read more >
Getting Maven "Could not transfer artifact from/to releases-ee ...
You get an error message during your Maven build that seems to suggest Maven is looking wrongly for a dependency in Mulesoft Enterprise...
Read more >
[RTFACT-4702] Aritfact Download Fails in Artifactory ... - JFrog
Periodically maven builds fail with a 'stream closed' error when downloading artifacts. There was nothing out of the ordinary in the Artifactory logs....
Read more >
Intermittent failures while downloading GAVs from Nexus
Error example below: 20744 [main] [ERROR] Failed to execute goal on project EcotransitWSClient: Could not resolve dependencies for project it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found