{"record":{"id":"597e4e11b02e0399","repo":"apache/maven","slug":"resource-to-deploy-not-found-e-getmessage","errorCode":null,"errorMessage":"Resource to deploy not found: \" + e.getMessage()","messagePattern":"Resource to deploy not found: \" \\+ e\\.getMessage\\(\\)","errorType":"exception","errorClass":"TransferFailedException","httpStatus":null,"severity":"error","filePath":"compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java","lineNumber":556,"sourceCode":"            for (String extension : checksums.keySet()) {\n                // TODO shouldn't need a file intermediary - improve wagon to take a stream\n                File temp = File.createTempFile(\"maven-artifact\", null);\n                temp.deleteOnExit();\n                byte[] bytes = sums.get(extension).getBytes(StandardCharsets.UTF_8);\n                Files.write(\n                        Paths.get(temp.getAbsolutePath()), bytes, StandardOpenOption.APPEND, StandardOpenOption.CREATE);\n\n                temporaryFiles.add(temp);\n                wagon.put(temp, remotePath + \".\" + extension);\n            }\n        } catch (ConnectionException e) {\n            throw new TransferFailedException(\"Connection failed: \" + e.getMessage(), e);\n        } catch (AuthenticationException e) {\n            throw new TransferFailedException(\"Authentication failed: \" + e.getMessage(), e);\n        } catch (AuthorizationException e) {\n            throw new TransferFailedException(\"Authorization failed: \" + e.getMessage(), e);\n        } catch (ResourceDoesNotExistException e) {\n            throw new TransferFailedException(\"Resource to deploy not found: \" + e.getMessage(), e);\n        } catch (IOException e) {\n            throw new TransferFailedException(\"Error creating temporary file for deployment: \" + e.getMessage(), e);\n        } finally {\n            // MNG-4543\n            cleanupTemporaryFiles(temporaryFiles);\n\n            // Remove every checksum listener\n            for (String id : CHECKSUM_IDS) {\n                TransferListener checksumListener = checksums.get(id);\n                if (checksumListener != null) {\n                    wagon.removeTransferListener(checksumListener);\n                }\n            }\n\n            disconnectWagon(wagon);\n\n            releaseWagon(protocol, wagon);\n        }","sourceCodeStart":538,"sourceCodeEnd":574,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java#L538-L574","documentation":"Error \"Resource to deploy not found: \" + e.getMessage()\" thrown in apache/maven.","triggerScenarios":"Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:556 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}