apache/maven · error · ResourceDoesNotExistException
Downloaded file does not exist: " + temp
Error message
Downloaded file does not exist: " + temp
What it means
Error "Downloaded file does not exist: " + temp" thrown in apache/maven.
Source
Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:448
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);
}
// The temporary file is named destination + ".tmp" and is done this way to ensure
// that the temporary file is in the same file system as the destination because the
// File.renameTo operation doesn't really work across file systems.
// So we will attempt to do a File.renameTo for efficiency and atomicity, if this fails
// then we will use a brute force copy and delete the temporary file.
if (!temp.renameTo(destination)) {
try {
Files.copy(
temp.toPath(),
destination.toPath(),
StandardCopyOption.REPLACE_EXISTING,
StandardCopyOption.COPY_ATTRIBUTES);
if (!temp.delete()) {
temp.deleteOnExit();
}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:448 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/e5e1f0a27c3a45b7.
Report an issue: GitHub.