apache/maven · error · TransferFailedException
Connection failed: " + e.getMessage()
Error message
Connection failed: " + e.getMessage()
What it means
Error "Connection failed: " + e.getMessage()" thrown in apache/maven.
Source
Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:430
// this was a failed transfer, and we don't want to retry.
handleChecksumFailure(
checksumPolicy,
"Error retrieving checksum file for " + remotePath,
md5TryException);
}
}
// reinstate the download monitor...
if (downloadMonitor != null) {
wagon.addTransferListener(downloadMonitor);
}
}
// unset the firstRun flag, so we don't get caught in an infinite loop...
firstRun = false;
}
} catch (ConnectionException e) {
throw new TransferFailedException("Connection failed: " + e.getMessage(), e);
} catch (AuthenticationException e) {
throw new TransferFailedException("Authentication failed: " + e.getMessage(), e);
} catch (AuthorizationException e) {
throw new TransferFailedException("Authorization failed: " + e.getMessage(), e);
} finally {
// Remove remaining TransferListener instances (checksum handlers removed in above finally clause)
if (downloadMonitor != null) {
wagon.removeTransferListener(downloadMonitor);
}
disconnectWagon(wagon);
releaseWagon(protocol, wagon);
}
if (downloaded) {
if (!temp.exists()) {
throw new ResourceDoesNotExistException("Downloaded file does not exist: " + temp);View on GitHub (pinned to e4093d4e12)
When it happens
Trigger: Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:430 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/maven@e4093d4e12 (2026-08-21).
Data as JSON: /api/errors/1e8e1cc7089e5aa0.
Report an issue: GitHub.